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

Function test_extract_bash_no_dangling_edges

tests/test_extract.py:1183–1190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1181
1182
1183def 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
1193def test_extract_bash_skip_builtins_in_calls():

Callers

nothing calls this directly

Calls 1

extract_bashFunction · 0.90

Tested by

no test coverage detected