Make it possible to test Fs multiple times and use this with crypt

We test both the filename encryption modes for crypt.
This commit is contained in:
Nick Craig-Wood 2016-08-20 18:47:33 +01:00
parent 43eadf278c
commit e6a0521ca2
15 changed files with 99 additions and 30 deletions

View file

@ -12,7 +12,7 @@ import (
"github.com/ncw/rclone/swift"
)
func init() {
func TestSetup(t *testing.T) {
fstests.NilObject = fs.Object((*swift.Object)(nil))
fstests.RemoteName = "TestSwift:"
}