mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
mockfs: make it so it can be registered as an Fs
This commit is contained in:
@@ -12,7 +12,8 @@ import (
|
||||
)
|
||||
|
||||
func mockNewFs(t *testing.T) func() {
|
||||
f := mockfs.NewFs(context.Background(), "mock", "mock")
|
||||
f, err := mockfs.NewFs(context.Background(), "mock", "mock", nil)
|
||||
require.NoError(t, err)
|
||||
cache.Put("/", f)
|
||||
cache.Put("mock:/", f)
|
||||
cache.Put(":mock:/", f)
|
||||
|
||||
Reference in New Issue
Block a user