Home / Function/ test_bare_domain_without_path_not_detected() — langchain Function Reference

test_bare_domain_without_path_not_detected() — langchain Function Reference

Architecture documentation for the test_bare_domain_without_path_not_detected() function in test_pii.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  18901f95_df60_7f68_c1bb_082ffa710b2e["test_bare_domain_without_path_not_detected()"]
  20a7ba9e_05c6_7daa_b413_28997f2af3d2["TestURLDetection"]
  18901f95_df60_7f68_c1bb_082ffa710b2e -->|defined in| 20a7ba9e_05c6_7daa_b413_28997f2af3d2
  style 18901f95_df60_7f68_c1bb_082ffa710b2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py lines 218–223

    def test_bare_domain_without_path_not_detected(self) -> None:
        # To reduce false positives, bare domains without paths are not detected
        content = "The word example.com in prose"
        detect_url(content)
        # May or may not detect depending on implementation
        # This is acceptable

Domain

Subdomains

Frequently Asked Questions

What does test_bare_domain_without_path_not_detected() do?
test_bare_domain_without_path_not_detected() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py.
Where is test_bare_domain_without_path_not_detected() defined?
test_bare_domain_without_path_not_detected() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py at line 218.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free