MCPcopy
hub / github.com/rclone/rclone / TestIntegration

Function TestIntegration

backend/cache/cache_test.go:16–25  ·  view source on GitHub ↗

TestIntegration runs integration tests against the remote

(t *testing.T)

Source from the content-addressed store, hash-verified

14
15// TestIntegration runs integration tests against the remote
16func 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", "ListP"},
21 UnimplementableObjectMethods: []string{"MimeType", "ID", "GetTier", "SetTier", "Metadata", "SetMetadata"},
22 UnimplementableDirectoryMethods: []string{"Metadata", "SetMetadata", "SetModTime"},
23 SkipInvalidUTF8: true, // invalid UTF-8 confuses the cache
24 })
25}

Callers

nothing calls this directly

Calls 1

RunFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…