fixup unused functions/vars

This commit is contained in:
Evan Jarrett
2026-01-04 21:16:02 -06:00
parent 680e4bdfe2
commit fbcaf56fce
7 changed files with 5 additions and 45 deletions
-20
View File
@@ -1,12 +1,10 @@
package pds
import (
"context"
"os"
"path/filepath"
"testing"
"github.com/bluesky-social/indigo/repo"
_ "github.com/mattn/go-sqlite3"
)
@@ -607,21 +605,3 @@ func TestRecordsIndex_MultipleCollections(t *testing.T) {
t.Errorf("Expected captain count 1 after deleting crew, got %d", count)
}
}
// mockRepo is a minimal mock for testing backfill
// Note: Full backfill testing requires integration tests with real repo
type mockRepo struct {
records map[string]string // key -> cid
}
func (m *mockRepo) ForEach(ctx context.Context, prefix string, fn func(string, any) error) error {
for k, v := range m.records {
if err := fn(k, v); err != nil {
if err == repo.ErrDoneIterating {
return nil
}
return err
}
}
return nil
}