test_detect_credit_card_with_spaces() — langchain Function Reference
Architecture documentation for the test_detect_credit_card_with_spaces() function in test_pii.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e115c24c_cf8b_bc65_3cfb_56d11237f7f1["test_detect_credit_card_with_spaces()"] 6c7a1b0c_679a_9f4c_e9a9_c33205da0105["TestCreditCardDetection"] e115c24c_cf8b_bc65_3cfb_56d11237f7f1 -->|defined in| 6c7a1b0c_679a_9f4c_e9a9_c33205da0105 style e115c24c_cf8b_bc65_3cfb_56d11237f7f1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py lines 73–80
def test_detect_credit_card_with_spaces(self) -> None:
# Valid Mastercard test number
# Add spaces
spaced_content = "Card: 5425 2334 3010 9903"
matches = detect_credit_card(spaced_content)
assert len(matches) == 1
assert "5425 2334 3010 9903" in matches[0]["value"]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_detect_credit_card_with_spaces() do?
test_detect_credit_card_with_spaces() 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_credit_card_with_spaces() defined?
test_detect_credit_card_with_spaces() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py at line 73.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free