(t *testing.T)
| 178 | } |
| 179 | |
| 180 | func TestSearchSnapshot_Limit(t *testing.T) { |
| 181 | t.Parallel() |
| 182 | paths := make([]string, 50) |
| 183 | for i := range paths { |
| 184 | paths[i] = "handler" + string(rune('a'+i%26)) + ".go" |
| 185 | } |
| 186 | snap := filefinder.MakeTestSnapshot(paths) |
| 187 | cands := filefinder.SearchSnapshotForTest(filefinder.NewQueryPlanForTest("handler"), snap, 3) |
| 188 | if len(cands) > 3 { |
| 189 | t.Errorf("expected at most 3 candidates, got %d", len(cands)) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | func TestIntersectSorted(t *testing.T) { |
| 194 | t.Parallel() |
nothing calls this directly
no test coverage detected