mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 15:00:23 +08:00
24 lines
603 B
Go
24 lines
603 B
Go
// Test Cache filesystem interface
|
|
|
|
// +build !plan9
|
|
|
|
package cache_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ncw/rclone/backend/cache"
|
|
_ "github.com/ncw/rclone/backend/local"
|
|
"github.com/ncw/rclone/fstest/fstests"
|
|
)
|
|
|
|
// TestIntegration runs integration tests against the remote
|
|
func TestIntegration(t *testing.T) {
|
|
fstests.Run(t, &fstests.Opt{
|
|
RemoteName: "TestCache:",
|
|
NilObject: (*cache.Object)(nil),
|
|
UnimplementableFsMethods: []string{"PublicLink", "MergeDirs"},
|
|
UnimplementableObjectMethods: []string{"MimeType", "ID", "GetTier", "SetTier"},
|
|
})
|
|
}
|