fixed test mock to fit new interface
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
|||||||
type mockCache struct {
|
type mockCache struct {
|
||||||
fetched []string
|
fetched []string
|
||||||
fetchDBCalled bool
|
fetchDBCalled bool
|
||||||
|
clean error
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mockCache) FetchDB(repo string) 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)
|
m.fetched = append(m.fetched, relPath)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
func (m *mockCache) Clean() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func newTestRepo(t *testing.T, repoPath string, rs *RepoSync) {
|
func newTestRepo(t *testing.T, repoPath string, rs *RepoSync) {
|
||||||
// create newTestRepo with db file
|
// create newTestRepo with db file
|
||||||
|
|||||||
Reference in New Issue
Block a user