fixed test mock to fit new interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user