(tmp_path)
| 76 | |
| 77 | |
| 78 | def test_reference_edges(tmp_path): |
| 79 | r = extract_terraform(_write(tmp_path, "main.tf", SAMPLE)) |
| 80 | refs = _rel_pairs(r, "references") |
| 81 | assert ("provider.aws", "var.region") in refs |
| 82 | assert ("aws_instance.web", "data.aws_ami.ubuntu") in refs |
| 83 | assert ("aws_instance.web", "var.region") in refs |
| 84 | assert ("module.vpc", "local.cidr") in refs |
| 85 | assert ("output.ip", "aws_instance.web") in refs |
| 86 | |
| 87 | |
| 88 | def test_depends_on_edge(tmp_path): |
nothing calls this directly
no test coverage detected