github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/backend/qingstor/qingstor_test.go (about) 1 // Test QingStor filesystem interface 2 3 // +build !plan9 4 5 package qingstor 6 7 import ( 8 "testing" 9 10 "github.com/rclone/rclone/fs" 11 "github.com/rclone/rclone/fstest/fstests" 12 ) 13 14 // TestIntegration runs integration tests against the remote 15 func TestIntegration(t *testing.T) { 16 fstests.Run(t, &fstests.Opt{ 17 RemoteName: "TestQingStor:", 18 NilObject: (*Object)(nil), 19 ChunkedUpload: fstests.ChunkedUploadConfig{ 20 MinChunkSize: minChunkSize, 21 }, 22 }) 23 } 24 25 func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) { 26 return f.setUploadChunkSize(cs) 27 } 28 29 func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) { 30 return f.setUploadCutoff(cs) 31 } 32 33 var _ fstests.SetUploadChunkSizer = (*Fs)(nil)