test_is_private_ip_public() — langchain Function Reference
Architecture documentation for the test_is_private_ip_public() function in test_ssrf_protection.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bbe5e698_f1cd_203f_34c1_8f8af9285c35["test_is_private_ip_public()"] 5d0af313_84be_a251_2294_d136a0904196["TestIPValidation"] bbe5e698_f1cd_203f_34c1_8f8af9285c35 -->|defined in| 5d0af313_84be_a251_2294_d136a0904196 style bbe5e698_f1cd_203f_34c1_8f8af9285c35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_ssrf_protection.py lines 38–42
def test_is_private_ip_public(self) -> None:
"""Test that public IPs are not flagged as private."""
assert is_private_ip("8.8.8.8") is False
assert is_private_ip("1.1.1.1") is False
assert is_private_ip("151.101.1.140") is False
Domain
Subdomains
Source
Frequently Asked Questions
What does test_is_private_ip_public() do?
test_is_private_ip_public() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_ssrf_protection.py.
Where is test_is_private_ip_public() defined?
test_is_private_ip_public() is defined in libs/core/tests/unit_tests/test_ssrf_protection.py at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free