Stems of the files whose `callee` the method `caller` calls.
(nodes, edges, caller: str, callee: str = ".m()")
| 44 | |
| 45 | |
| 46 | def _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 | |
| 55 | def test_self_call_reaches_a_base_method_in_another_file(tmp_path): |
no outgoing calls
no test coverage detected