github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/backend/uptobox/uptobox_test.go (about)

     1  // Test Uptobox filesystem interface
     2  package uptobox_test
     3  
     4  import (
     5  	"testing"
     6  
     7  	"github.com/rclone/rclone/backend/uptobox"
     8  	"github.com/rclone/rclone/fstest"
     9  	"github.com/rclone/rclone/fstest/fstests"
    10  )
    11  
    12  // TestIntegration runs integration tests against the remote
    13  func TestIntegration(t *testing.T) {
    14  	if *fstest.RemoteName == "" {
    15  		*fstest.RemoteName = "TestUptobox:"
    16  	}
    17  	fstests.Run(t, &fstests.Opt{
    18  		RemoteName: *fstest.RemoteName,
    19  		NilObject:  (*uptobox.Object)(nil),
    20  	})
    21  }