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

Function _normalizing_decoy_graph

tests/test_path_cli.py:616–630  ·  view source on GitHub ↗

A node whose label tokenizes to another node's id words (#5361). The decoy in notes.md carries the label "demo src alpha prepare", which `_search_tokens` splits into the same words as the id `demo::src_alpha_prepare`, so both land in the exact tier and the id query used to be refuse

(tmp_path)

Source from the content-addressed store, hash-verified

614
615
616def _normalizing_decoy_graph(tmp_path):
617 """A node whose label tokenizes to another node's id words (#5361).
618
619 The decoy in notes.md carries the label "demo src alpha prepare", which
620 `_search_tokens` splits into the same words as the id
621 `demo::src_alpha_prepare`, so both land in the exact tier and the id query
622 used to be refused as ambiguous across two files.
623 """
624 return _write_nodes(tmp_path, [
625 ("demo::src_alpha_prepare", "prepare()", "alpha.py", "L1"),
626 ("demo::src_beta_finish", "finish()", "beta.py", "L1"),
627 ("decoy", "demo src alpha prepare", "notes.md", "L1"),
628 ], [
629 ("demo::src_alpha_prepare", "demo::src_beta_finish", "calls"),
630 ])
631
632
633@pytest.mark.parametrize("ends", [

Calls 1

_write_nodesFunction · 0.70

Tested by

no test coverage detected