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

Function _no_such_node_graph

tests/test_path_cli.py:565–584  ·  view source on GitHub ↗

#5079: `zzqqxx_no_such_symbol_9137` names nothing, but `no_such_symbol_helper()` shares three of its `_`-split tokens and wins the score fallback, so `path` used to print the helper's route and exit 0 while `explain` said "No node matching".

(tmp_path)

Source from the content-addressed store, hash-verified

563
564
565def _no_such_node_graph(tmp_path):
566 """#5079: `zzqqxx_no_such_symbol_9137` names nothing, but `no_such_symbol_helper()`
567 shares three of its `_`-split tokens and wins the score fallback, so `path` used
568 to print the helper's route and exit 0 while `explain` said "No node matching"."""
569 return _write_nodes(tmp_path, [
570 ("src_a_ts", "a.ts", "src/a.ts", "L1"),
571 ("src_a_ts_parse", "parse()", "src/a.ts", "L1"),
572 ("src_b_ts", "b.ts", "src/b.ts", "L1"),
573 ("src_b_ts_helper", "no_such_symbol_helper()", "src/b.ts", "L1"),
574 ("src_b_ts_format", "format()", "src/b.ts", "L1"),
575 ("src_c_ts", "c.ts", "src/c.ts", "L1"),
576 ("src_c_ts_format", "format()", "src/c.ts", "L1"),
577 ], [
578 ("src_a_ts", "src_a_ts_parse", "contains"),
579 ("src_a_ts_parse", "src_b_ts_helper", "calls"),
580 ("src_b_ts", "src_b_ts_helper", "contains"),
581 ("src_b_ts", "src_b_ts_format", "contains"),
582 ("src_c_ts", "src_c_ts_format", "contains"),
583 ("src_b_ts_helper", "src_b_ts_format", "calls"),
584 ])
585
586
587_NO_SUCH_NODE = "zzqqxx_no_such_symbol_9137"

Calls 1

_write_nodesFunction · 0.70

Tested by

no test coverage detected