fixed test mock to fit new interface

This commit is contained in:
2026-05-29 04:07:19 -06:00
parent 71d83df5f7
commit fb01c49045
+4
View File
@@ -17,6 +17,7 @@ import (
type mockCache struct {
fetched []string
fetchDBCalled bool
clean error
}
func (m *mockCache) FetchDB(repo string) error {
@@ -27,6 +28,9 @@ func (m *mockCache) Fetch(relPath string) (*cache.CacheFile, error) {
m.fetched = append(m.fetched, relPath)
return nil, nil
}
func (m *mockCache) Clean() error {
return nil
}
func newTestRepo(t *testing.T, repoPath string, rs *RepoSync) {
// create newTestRepo with db file