2014-07-24 23:50:11 +02:00
|
|
|
// Test Drive filesystem interface
|
2018-11-26 15:08:51 +01:00
|
|
|
|
|
|
|
// +build go1.9
|
|
|
|
|
2018-09-07 13:02:27 +02:00
|
|
|
package drive
|
2014-07-24 23:50:11 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2018-09-07 13:02:27 +02:00
|
|
|
"github.com/ncw/rclone/fs"
|
2014-07-24 23:50:11 +02:00
|
|
|
"github.com/ncw/rclone/fstest/fstests"
|
|
|
|
)
|
|
|
|
|
2018-04-07 19:48:11 +02:00
|
|
|
// TestIntegration runs integration tests against the remote
|
|
|
|
func TestIntegration(t *testing.T) {
|
|
|
|
fstests.Run(t, &fstests.Opt{
|
|
|
|
RemoteName: "TestDrive:",
|
2018-09-07 13:02:27 +02:00
|
|
|
NilObject: (*Object)(nil),
|
|
|
|
ChunkedUpload: fstests.ChunkedUploadConfig{
|
|
|
|
MinChunkSize: minChunkSize,
|
|
|
|
CeilChunkSize: fstests.NextPowerOfTwo,
|
|
|
|
},
|
2018-04-07 19:48:11 +02:00
|
|
|
})
|
2014-07-24 23:50:11 +02:00
|
|
|
}
|
2018-09-07 13:02:27 +02:00
|
|
|
|
|
|
|
func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadChunkSize(cs)
|
|
|
|
}
|
|
|
|
|
2018-10-13 23:45:17 +02:00
|
|
|
func (f *Fs) SetUploadCutoff(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
|
|
|
|
return f.setUploadCutoff(cs)
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
_ fstests.SetUploadChunkSizer = (*Fs)(nil)
|
|
|
|
_ fstests.SetUploadCutoffer = (*Fs)(nil)
|
|
|
|
)
|