Home / Function/ test_detect_credit_card_with_dashes() — langchain Function Reference

test_detect_credit_card_with_dashes() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9e658dbb_3816_2e21_24b3_1ccc90b8f899["test_detect_credit_card_with_dashes()"]
  6c7a1b0c_679a_9f4c_e9a9_c33205da0105["TestCreditCardDetection"]
  9e658dbb_3816_2e21_24b3_1ccc90b8f899 -->|defined in| 6c7a1b0c_679a_9f4c_e9a9_c33205da0105
  style 9e658dbb_3816_2e21_24b3_1ccc90b8f899 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py lines 82–86

    def test_detect_credit_card_with_dashes(self) -> None:
        content = "Card: 4532-0151-1283-0366"
        matches = detect_credit_card(content)

        assert len(matches) == 1

Domain

Subdomains

Frequently Asked Questions

What does test_detect_credit_card_with_dashes() do?
test_detect_credit_card_with_dashes() 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_dashes() defined?
test_detect_credit_card_with_dashes() is defined in libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_pii.py at line 82.

Analyze Your Own Codebase

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

Try Supermodel Free