Feat: add List method to Handler interface / implement local.List

This commit is contained in:
HFO4
2020-04-24 11:08:07 +08:00
parent 6006ff4d22
commit f7311f906b
11 changed files with 97 additions and 2 deletions

View File

@@ -26,6 +26,10 @@ type FileHeaderMock struct {
testMock.Mock
}
func (m FileHeaderMock) List(ctx context.Context, path string) ([]response.Object, error) {
panic("implement me")
}
func (m FileHeaderMock) Get(ctx context.Context, path string) (response.RSCloser, error) {
args := m.Called(ctx, path)
return args.Get(0).(response.RSCloser), args.Error(1)