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)
| 614 | |
| 615 | |
| 616 | def _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", [ |
no test coverage detected