Home / Function/ test_parse_invalid_grammar() — langchain Function Reference

test_parse_invalid_grammar() — langchain Function Reference

Architecture documentation for the test_parse_invalid_grammar() function in test_parser.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  43512697_2270_1330_b5ea_97eefbd05c55["test_parse_invalid_grammar()"]
  064e0ca3_1663_b885_96b9_052c91c4e115["test_parser.py"]
  43512697_2270_1330_b5ea_97eefbd05c55 -->|defined in| 064e0ca3_1663_b885_96b9_052c91c4e115
  style 43512697_2270_1330_b5ea_97eefbd05c55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py lines 20–22

def test_parse_invalid_grammar(x: str) -> None:
    with pytest.raises((ValueError, lark.exceptions.UnexpectedToken)):
        DEFAULT_PARSER.parse(x)

Domain

Subdomains

Frequently Asked Questions

What does test_parse_invalid_grammar() do?
test_parse_invalid_grammar() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py.
Where is test_parse_invalid_grammar() defined?
test_parse_invalid_grammar() is defined in libs/langchain/tests/unit_tests/chains/query_constructor/test_parser.py at line 20.

Analyze Your Own Codebase

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

Try Supermodel Free