github.com/artpar/rclone@v1.67.3/backend/cache/cache_test.go (about) 1 // Test Cache filesystem interface 2 3 //go:build !plan9 && !js && !race 4 5 package cache_test 6 7 import ( 8 "testing" 9 10 "github.com/artpar/rclone/backend/cache" 11 _ "github.com/artpar/rclone/backend/local" 12 "github.com/artpar/rclone/fstest/fstests" 13 ) 14 15 // TestIntegration runs integration tests against the remote 16 func TestIntegration(t *testing.T) { 17 fstests.Run(t, &fstests.Opt{ 18 RemoteName: "TestCache:", 19 NilObject: (*cache.Object)(nil), 20 UnimplementableFsMethods: []string{"PublicLink", "OpenWriterAt", "OpenChunkWriter", "DirSetModTime", "MkdirMetadata"}, 21 UnimplementableObjectMethods: []string{"MimeType", "ID", "GetTier", "SetTier", "Metadata"}, 22 UnimplementableDirectoryMethods: []string{"Metadata", "SetMetadata", "SetModTime"}, 23 SkipInvalidUTF8: true, // invalid UTF-8 confuses the cache 24 }) 25 }