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

Function _same_file_twin_graph

tests/test_path_cli.py:437–452  ·  view source on GitHub ↗

`.nonce()` on two classes of one file, both reachable from run().

(tmp_path)

Source from the content-addressed store, hash-verified

435
436
437def _same_file_twin_graph(tmp_path):
438 """`.nonce()` on two classes of one file, both reachable from run()."""
439 return _write_nodes(tmp_path, [
440 ("src_x", "x.ts", "src/x.ts", "L1"),
441 ("src_x_run", "run()", "src/x.ts", "L3"),
442 ("src_x_alphaclient", "AlphaClient", "src/x.ts", "L5"),
443 ("src_x_alphaclient_nonce", ".nonce()", "src/x.ts", "L6"),
444 ("src_x_betaclient", "BetaClient", "src/x.ts", "L9"),
445 ("src_x_betaclient_nonce", ".nonce()", "src/x.ts", "L10"),
446 ], [
447 ("src_x", "src_x_run", "contains"),
448 ("src_x_run", "src_x_alphaclient", "calls"),
449 ("src_x_run", "src_x_betaclient", "calls"),
450 ("src_x_alphaclient", "src_x_alphaclient_nonce", "method"),
451 ("src_x_betaclient", "src_x_betaclient_nonce", "method"),
452 ])
453
454
455@pytest.mark.parametrize("target", [".nonce()", "src/x.ts::.nonce()"])

Calls 1

_write_nodesFunction · 0.70

Tested by

no test coverage detected