test_each_simple() — langchain Function Reference
Architecture documentation for the test_each_simple() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 40261bd4_bb74_6e4d_3765_a0785339a53d["test_each_simple()"] 26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"] 40261bd4_bb74_6e4d_3765_a0785339a53d -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5 f59d5b6a_111b_6895_b338_7e3d29e63896["invoke()"] 40261bd4_bb74_6e4d_3765_a0785339a53d -->|calls| f59d5b6a_111b_6895_b338_7e3d29e63896 style 40261bd4_bb74_6e4d_3765_a0785339a53d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 3820–3828
def test_each_simple() -> None:
"""Test that each() works with a simple runnable."""
parser = FakeSplitIntoListParser()
assert parser.invoke("first item, second item") == ["first item", "second item"]
assert parser.map().invoke(["a, b", "c"]) == [["a", "b"], ["c"]]
assert parser.map().map().invoke([["a, b", "c"], ["c, e"]]) == [
[["a", "b"], ["c"]],
[["c", "e"]],
]
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_each_simple() do?
test_each_simple() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_each_simple() defined?
test_each_simple() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 3820.
What does test_each_simple() call?
test_each_simple() calls 1 function(s): invoke.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free