Skip to content

Commit 56521be

Browse files
committed
fix
1 parent 6804884 commit 56521be

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

support/datastore/mocks.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package datastore
33
import (
44
"context"
55
"io"
6+
"time"
67

78
"github.com/stretchr/testify/mock"
89
)
@@ -27,6 +28,14 @@ func (m *MockDataStore) GetFileMetadata(ctx context.Context, path string) (map[s
2728
return args.Get(0).(map[string]string), args.Error(1)
2829
}
2930

31+
func (m *MockDataStore) GetFileLastModified(ctx context.Context, filePath string) (time.Time, error) {
32+
args := m.Called(ctx, filePath)
33+
if args.Get(0) != nil {
34+
return args.Get(0).(time.Time), args.Error(1)
35+
}
36+
return time.Time{}, args.Error(1)
37+
}
38+
3039
func (m *MockDataStore) GetFile(ctx context.Context, path string) (io.ReadCloser, error) {
3140
args := m.Called(ctx, path)
3241
closer := (io.ReadCloser)(nil)

0 commit comments

Comments
 (0)