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

Function _hits

tests/test_python_inherited_method_calls.py:46–52  ·  view source on GitHub ↗

Stems of the files whose `callee` the method `caller` calls.

(nodes, edges, caller: str, callee: str = ".m()")

Source from the content-addressed store, hash-verified

44
45
46def _hits(nodes, edges, caller: str, callee: str = ".m()") -> list[str]:
47 """Stems of the files whose `callee` the method `caller` calls."""
48 return sorted(
49 Path(nodes[e["target"]]["source_file"]).stem
50 for e in edges
51 if nodes[e["source"]]["label"] == f".{caller}()" and nodes[e["target"]]["label"] == callee
52 )
53
54
55def test_self_call_reaches_a_base_method_in_another_file(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected