mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Modify: add general ReaderCloserSeeker interface for handler GET method to return
This commit is contained in:
@@ -22,9 +22,9 @@ type FileHeaderMock struct {
|
||||
testMock.Mock
|
||||
}
|
||||
|
||||
func (m FileHeaderMock) Get(ctx context.Context, path string) (io.ReadSeeker, error) {
|
||||
func (m FileHeaderMock) Get(ctx context.Context, path string) (response.RSCloser, error) {
|
||||
args := m.Called(ctx, path)
|
||||
return args.Get(0).(io.ReadSeeker), args.Error(1)
|
||||
return args.Get(0).(response.RSCloser), args.Error(1)
|
||||
}
|
||||
|
||||
func (m FileHeaderMock) Put(ctx context.Context, file io.ReadCloser, dst string, size uint64) error {
|
||||
|
||||
Reference in New Issue
Block a user