MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _check_calls

Function _check_calls

tests/test_python_lambda_call_shadowing.py:83–98  ·  view source on GitHub ↗
(result: dict)

Source from the content-addressed store, hash-verified

81
82
83def _check_calls(result: dict) -> None:
84 edges = _call_edges(result)
85 for caller in ("passed()", "invoked()", "nested()"):
86 assert not any(source == caller and target == "handler()" for source, target, *_ in edges)
87 assert edges >= {
88 ("passed()", "accept()", "probe.py", "calls"),
89 ("invoked()", "helper()", "probe.py", "calls"),
90 ("invoked()", "accept()", "probe.py", "calls"),
91 ("nested()", "accept()", "probe.py", "calls"),
92 ("closure()", "captured()", "probe.py", "indirect_call"),
93 ("default_value()", "callback()", "callbacks.py", "indirect_call"),
94 ("default_call()", "callback()", "callbacks.py", "calls"),
95 ("outside()", "callback()", "callbacks.py", "indirect_call"),
96 ("alias_call()", "support()", "callbacks.py", "calls"),
97 ("relative_call()", "support()", "callbacks.py", "calls"),
98 }
99
100
101@pytest.mark.parametrize("placement", ["same", "cross"])

Calls 1

_call_edgesFunction · 0.70

Tested by

no test coverage detected