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

Function test_reference_edges

tests/test_terraform.py:78–85  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

76
77
78def 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
88def test_depends_on_edge(tmp_path):

Callers

nothing calls this directly

Calls 3

extract_terraformFunction · 0.90
_rel_pairsFunction · 0.85
_writeFunction · 0.70

Tested by

no test coverage detected