github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/backend/onedrive/onedrive_test.go (about)

     1  // Test OneDrive filesystem interface
     2  package onedrive
     3  
     4  import (
     5  	"testing"
     6  
     7  	"github.com/rclone/rclone/fs"
     8  	"github.com/rclone/rclone/fstest/fstests"
     9  )
    10  
    11  // TestIntegration runs integration tests against the remote
    12  func TestIntegration(t *testing.T) {
    13  	fstests.Run(t, &fstests.Opt{
    14  		RemoteName: "TestOneDrive:",
    15  		NilObject:  (*Object)(nil),
    16  		ChunkedUpload: fstests.ChunkedUploadConfig{
    17  			CeilChunkSize: fstests.NextMultipleOf(chunkSizeMultiple),
    18  		},
    19  	})
    20  }
    21  
    22  func (f *Fs) SetUploadChunkSize(cs fs.SizeSuffix) (fs.SizeSuffix, error) {
    23  	return f.setUploadChunkSize(cs)
    24  }
    25  
    26  var _ fstests.SetUploadChunkSizer = (*Fs)(nil)