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