github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/backend/qingstor/qingstor_test.go (about) 1 // Test QingStor filesystem interface 2 3 //go:build !plan9 && !js 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)