(tmp_path, files)
| 9 | |
| 10 | |
| 11 | def _calls(tmp_path, files): |
| 12 | paths = [] |
| 13 | for name, code in files.items(): |
| 14 | f = tmp_path / name |
| 15 | f.write_text(code, encoding="utf-8") |
| 16 | paths.append(f) |
| 17 | result = extract(sorted(paths), root=tmp_path) |
| 18 | return {(e["source"], e["target"], e["relation"]) for e in result["edges"] |
| 19 | if e["relation"] in ("calls", "indirect_call")} |
| 20 | |
| 21 | |
| 22 | def test_same_inner_name_in_two_functions_binds_to_its_own(tmp_path): |
no test coverage detected