test_detect_bare_domain_with_path() — langchain Function Reference
Architecture documentation for the test_detect_bare_domain_with_path() function in test_pii.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1982ff7c_302e_5d66_cfe5_0873cd1c8a77["test_detect_bare_domain_with_path()"] 20a7ba9e_05c6_7daa_b413_28997f2af3d2["TestURLDetection"] 1982ff7c_302e_5d66_cfe5_0873cd1c8a77 -->|defined in| 20a7ba9e_05c6_7daa_b413_28997f2af3d2 style 1982ff7c_302e_5d66_cfe5_0873cd1c8a77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py lines 200–205
def test_detect_bare_domain_with_path(self) -> None:
content = "Go to example.com/page"
matches = detect_url(content)
assert len(matches) == 1
assert matches[0]["value"] == "example.com/page"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_detect_bare_domain_with_path() do?
test_detect_bare_domain_with_path() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py.
Where is test_detect_bare_domain_with_path() defined?
test_detect_bare_domain_with_path() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py at line 200.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free