mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 17:24:16 +00:00
fixup unused functions/vars
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user