github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/backend/swift/swift_test.go (about) 1 // Test Swift filesystem interface 2 package swift 3 4 import ( 5 "testing" 6 7 "github.com/ncw/rclone/fs" 8 "github.com/ncw/rclone/fstest/fstests" 9 ) 10 11 // TestIntegration runs integration tests against the remote 12 func TestIntegration(t *testing.T) { 13 fstests.Run(t, &fstests.Opt{ 14 RemoteName: "TestSwift:", 15 NilObject: (*Object)(nil), 16 }) 17 } 18 19 func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) { 20 return f.setUploadChunkSize(cs) 21 } 22 23 var _ fstests.SetUploadChunkSizer = (*Fs)(nil)