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

Function _twin_method_graph

tests/test_path_cli.py:334–375  ·  view source on GitHub ↗

`.nonce()` defined on a class in each of two files, both reachable from run().

(tmp_path)

Source from the content-addressed store, hash-verified

332# ── #3913: endpoints resolve like `explain` (refuse ambiguity, honor ::/id) ──
333
334def _twin_method_graph(tmp_path):
335 """`.nonce()` defined on a class in each of two files, both reachable from run()."""
336 data = {
337 "directed": False, "multigraph": False, "graph": {},
338 "nodes": [
339 {"id": "src_main", "label": "main.ts", "source_file": "src/main.ts",
340 "source_location": "L1"},
341 {"id": "src_main_run", "label": "run()", "source_file": "src/main.ts",
342 "source_location": "L3"},
343 {"id": "src_a", "label": "a.ts", "source_file": "src/a.ts",
344 "source_location": "L1"},
345 {"id": "src_a_alphaclient", "label": "AlphaClient", "source_file": "src/a.ts",
346 "source_location": "L1"},
347 {"id": "src_a_alphaclient_nonce", "label": ".nonce()", "source_file": "src/a.ts",
348 "source_location": "L1"},
349 {"id": "src_b", "label": "b.ts", "source_file": "src/b.ts",
350 "source_location": "L1"},
351 {"id": "src_b_betaclient", "label": "BetaClient", "source_file": "src/b.ts",
352 "source_location": "L1"},
353 {"id": "src_b_betaclient_nonce", "label": ".nonce()", "source_file": "src/b.ts",
354 "source_location": "L1"},
355 ],
356 "links": [
357 {"source": "src_main", "target": "src_main_run", "relation": "contains",
358 "confidence": "EXTRACTED"},
359 {"source": "src_main_run", "target": "src_a_alphaclient", "relation": "calls",
360 "confidence": "EXTRACTED"},
361 {"source": "src_main_run", "target": "src_b_betaclient", "relation": "calls",
362 "confidence": "EXTRACTED"},
363 {"source": "src_a", "target": "src_a_alphaclient", "relation": "contains",
364 "confidence": "EXTRACTED"},
365 {"source": "src_b", "target": "src_b_betaclient", "relation": "contains",
366 "confidence": "EXTRACTED"},
367 {"source": "src_a_alphaclient", "target": "src_a_alphaclient_nonce",
368 "relation": "method", "confidence": "EXTRACTED"},
369 {"source": "src_b_betaclient", "target": "src_b_betaclient_nonce",
370 "relation": "method", "confidence": "EXTRACTED"},
371 ],
372 }
373 gp = tmp_path / "graph.json"
374 gp.write_text(json.dumps(data))
375 return gp
376
377
378@pytest.mark.parametrize("ends", [("run()", ".nonce()"), (".nonce()", "run()")])

Calls

no outgoing calls

Tested by

no test coverage detected