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

Function _write_graph

tests/test_path_cli.py:15–31  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

13
14
15def _write_graph(tmp_path):
16 graph_data = {
17 "directed": False, "multigraph": False, "graph": {},
18 "nodes": [
19 {"id": "create_patch", "label": "createPatchHandler()",
20 "source_file": "server/create-patch-handler.ts", "community": 0},
21 {"id": "validate", "label": "validateSanitySession()",
22 "source_file": "server/sanity-validate-session.ts", "community": 0},
23 ],
24 "links": [
25 {"source": "create_patch", "target": "validate",
26 "relation": "calls", "confidence": "EXTRACTED"},
27 ],
28 }
29 p = tmp_path / "graph.json"
30 p.write_text(json.dumps(graph_data))
31 return p
32
33
34def _run(monkeypatch, graph_path, src, tgt, capsys, *extra):

Callers 2

test_forward_arrowFunction · 0.70
test_reverse_arrowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected