fix(indexing): remove unused code search test runner

This commit is contained in:
sam committed 2026-08-15 23:40:23 +10:00
1 parent df41aa27fb
commit 6329b336fe
1 file changed
-9
-9
View File
@@ -177,10 +177,6 @@ func TestStaleBuilderCannotCompleteNewerLease(t *testing.T) {
}
}
type fakeRunner struct {
files []string
}
type writingRunner struct{}
func (writingRunner) Build(_ context.Context, _, target string) error {
@@ -191,11 +187,6 @@ func (writingRunner) Candidates(context.Context, string, string, bool, bool) ([]
return nil, nil
}
func (f fakeRunner) Build(context.Context, string, string) error { return nil }
func (f fakeRunner) Candidates(context.Context, string, string, bool, bool) ([]string, error) {
return slices.Clone(f.files), nil
}
func writeTestFile(t *testing.T, dir, name, content string) {
t.Helper()
if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0o600); err != nil {