()
| 1147 | |
| 1148 | |
| 1149 | def test_extract_bash_emits_calls_edges(): |
| 1150 | result = extract_bash(FIXTURES / "sample.sh") |
| 1151 | calls = [(e["source"], e["target"]) for e in result["edges"] if e["relation"] == "calls"] |
| 1152 | # deploy() calls build() and test_suite(); test_suite() calls build() |
| 1153 | assert any("deploy" in s and "build" in t for s, t in calls) |
| 1154 | assert any("deploy" in s and "test_suite" in t for s, t in calls) |
| 1155 | assert any("test_suite" in s and "build" in t for s, t in calls) |
| 1156 | |
| 1157 | |
| 1158 | def test_extract_bash_calls_have_extracted_confidence(): |
nothing calls this directly
no test coverage detected