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

Function test_graph_diff_empty_diff

tests/test_analyze.py:338–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336
337
338def test_graph_diff_empty_diff():
339 nodes = [("n1", "Alpha"), ("n2", "Beta")]
340 edges = [("n1", "n2", "calls", "EXTRACTED")]
341 G_old = _make_simple_graph(nodes, edges)
342 G_new = _make_simple_graph(nodes, edges)
343 diff = graph_diff(G_old, G_new)
344 assert diff["new_nodes"] == []
345 assert diff["removed_nodes"] == []
346 assert diff["new_edges"] == []
347 assert diff["removed_edges"] == []
348 assert diff["summary"] == "no changes"
349
350
351def _make_marked_graph(src, tgt):

Callers

nothing calls this directly

Calls 2

graph_diffFunction · 0.90
_make_simple_graphFunction · 0.85

Tested by

no test coverage detected