(t *testing.T, results []filefinder.Result, path string)
| 24 | } |
| 25 | |
| 26 | func requireResultHasPath(t *testing.T, results []filefinder.Result, path string) { |
| 27 | t.Helper() |
| 28 | for _, r := range results { |
| 29 | if r.Path == path { |
| 30 | return |
| 31 | } |
| 32 | } |
| 33 | t.Errorf("expected %q in results, got %v", path, resultPaths(results)) |
| 34 | } |
| 35 | |
| 36 | func TestEngine_SearchFindsKnownFile(t *testing.T) { |
| 37 | t.Parallel() |
nothing calls this directly
no test coverage detected