local: define OpenWriterAt interface and test and implement it #2252

This will enable multipart downloads in future commits
This commit is contained in:
Nick Craig-Wood 2019-04-22 19:22:42 +01:00
parent 72721f4c8d
commit 7c4fe3eb75
5 changed files with 101 additions and 7 deletions

View file

@ -17,7 +17,7 @@ func TestIntegration(t *testing.T) {
fstests.Run(t, &fstests.Opt{
RemoteName: "TestCache:",
NilObject: (*cache.Object)(nil),
UnimplementableFsMethods: []string{"PublicLink", "MergeDirs"},
UnimplementableFsMethods: []string{"PublicLink", "MergeDirs", "OpenWriterAt"},
UnimplementableObjectMethods: []string{"MimeType", "ID", "GetTier", "SetTier"},
})
}