(t *testing.T)
| 117 | } |
| 118 | |
| 119 | func TestSearchSnapshot_ShortQuery(t *testing.T) { |
| 120 | t.Parallel() |
| 121 | snap := filefinder.MakeTestSnapshot([]string{"foo.go", "bar.go", "fab.go"}) |
| 122 | cands := filefinder.SearchSnapshotForTest(filefinder.NewQueryPlanForTest("fo"), snap, 100) |
| 123 | if len(cands) == 0 { |
| 124 | t.Fatal("expected at least 1 candidate for 'fo'") |
| 125 | } |
| 126 | requireCandHasPath(t, cands, "foo.go") |
| 127 | } |
| 128 | |
| 129 | func TestSearchSnapshot_FuzzyFallback(t *testing.T) { |
| 130 | t.Parallel() |
nothing calls this directly
no test coverage detected