()
| 1181 | |
| 1182 | |
| 1183 | def test_extract_bash_no_dangling_edges(): |
| 1184 | result = extract_bash(FIXTURES / "sample.sh") |
| 1185 | node_ids = {n["id"] for n in result["nodes"]} |
| 1186 | for e in result["edges"]: |
| 1187 | assert e["source"] in node_ids, f"Dangling source: {e['source']}" |
| 1188 | # targets may reference external files (imports_from) — only check non-import edges |
| 1189 | if e["relation"] not in ("imports_from", "imports"): |
| 1190 | assert e["target"] in node_ids, f"Dangling target: {e['target']}" |
| 1191 | |
| 1192 | |
| 1193 | def test_extract_bash_skip_builtins_in_calls(): |
nothing calls this directly
no test coverage detected