Feat: download file and get file downloading session

This commit is contained in:
HFO4 committed 2019-12-13 20:46:11 +08:00
1 parent ad02a659a6
commit f262caf1f5
10 files changed
+150 -18

No files matched your search

+4
View File
@@ -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)