(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func TestSearchSnapshot_FuzzyFallback(t *testing.T) { |
| 130 | t.Parallel() |
| 131 | snap := filefinder.MakeTestSnapshot([]string{"src/handler.go", "src/router.go", "lib/utils.go"}) |
| 132 | cands := filefinder.SearchSnapshotForTest(filefinder.NewQueryPlanForTest("hndlr"), snap, 100) |
| 133 | if len(cands) == 0 { |
| 134 | t.Fatal("expected fuzzy fallback to find 'handler.go' for query 'hndlr'") |
| 135 | } |
| 136 | requireCandHasPath(t, cands, "src/handler.go") |
| 137 | } |
| 138 | |
| 139 | func TestSearchSnapshot_FuzzyFallbackNoFirstCharMatch(t *testing.T) { |
| 140 | t.Parallel() |
nothing calls this directly
no test coverage detected