mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Feat: download file and get file downloading session
This commit is contained in:
@@ -46,6 +46,10 @@ func (m FileHeaderMock) Source(ctx context.Context, path string, url url.URL, ex
|
||||
args := m.Called(ctx, path, url, expires)
|
||||
return args.Get(0).(string), args.Error(1)
|
||||
}
|
||||
func (m FileHeaderMock) GetDownloadURL(ctx context.Context, path string, url url.URL, expires int64) (string, error) {
|
||||
args := m.Called(ctx, path, url, expires)
|
||||
return args.Get(0).(string), args.Error(1)
|
||||
}
|
||||
|
||||
func TestFileSystem_Upload(t *testing.T) {
|
||||
asserts := assert.New(t)
|
||||
|
||||
Reference in New Issue
Block a user