Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + var DumpBodies = flag.Bool("dump-bodies", false, "Set to dump bodies (needs -verbose)") + var DumpHeaders = flag.Bool("dump-headers", false, "Set to dump headers (needs -verbose)") + var Individual = flag.Bool("individual", false, ...) + var ListRetries = flag.Int("list-retries", 3, "Number or times to retry listing") + var LowLevelRetries = flag.Int("low-level-retries", 10, "Number of low level retries") + var MatchTestRemote = regexp.MustCompile(`^rclone-test-[abcdefghijklmnopqrstuvwxyz0123456789]{24}$`) + var RemoteName = flag.String("remote", "", "Remote to test with, defaults to local filesystem") + var SizeLimit = flag.Int64("size-limit", 0, "Limit maximum test file size") + var UseListR = flag.Bool("fast-list", false, ...) + var Verbose = flag.Bool("verbose", false, "Set to enable logging") + func AssertTimeEqualWithPrecision(t *testing.T, remote string, want, got time.Time, precision time.Duration) + func CheckItems(t *testing.T, f fs.Fs, items ...Item) + func CheckListing(t *testing.T, f fs.Fs, items []Item) + func CheckListingWithPrecision(t *testing.T, f fs.Fs, items []Item, expectedDirs []string, ...) + func CheckListingWithRoot(t *testing.T, f fs.Fs, dir string, items []Item, expectedDirs []string, ...) + func CheckTimeEqualWithPrecision(t0, t1 time.Time, precision time.Duration) (time.Duration, bool) + func CompareItems(t *testing.T, entries fs.DirEntries, items []Item, expectedDirs []string, ...) + func Initialise() + func LocalRemote() (path string, err error) + func Normalize(name string) string + func Purge(f fs.Fs) + func RandomRemote() (fs.Fs, string, func(), error) + func RandomRemoteName(remoteName string) (string, string, error) + func TestMain(m *testing.M) + func Time(timeString string) time.Time + type Item struct + Hashes map[hash.Type]string + ModTime time.Time + Path string + Size int64 + func NewItem(Path, Content string, modTime time.Time) Item + func (i *Item) Check(t *testing.T, obj fs.Object, precision time.Duration) + func (i *Item) CheckHashes(t *testing.T, obj fs.Object) + func (i *Item) CheckModTime(t *testing.T, obj fs.Object, modTime time.Time, precision time.Duration) + type Items struct + func NewItems(items []Item) *Items + func (is *Items) Done(t *testing.T) + func (is *Items) Find(t *testing.T, obj fs.Object, precision time.Duration) + type Run struct + Fatalf func(text string, args ...interface{}) + Flocal fs.Fs + Fremote fs.Fs + FremoteName string + LocalName string + Logf func(text string, args ...interface{}) + func NewRun(t *testing.T) *Run + func NewRunIndividual(t *testing.T) *Run + func (r *Run) CheckWithDuplicates(t *testing.T, items ...Item) + func (r *Run) Finalise() + func (r *Run) ForceMkdir(ctx context.Context, f fs.Fs) + func (r *Run) Mkdir(ctx context.Context, f fs.Fs) + func (r *Run) RenameFile(item Item, newpath string) Item + func (r *Run) WriteBoth(ctx context.Context, remote, content string, modTime time.Time) Item + func (r *Run) WriteFile(filePath, content string, t time.Time) Item + func (r *Run) WriteObject(ctx context.Context, remote, content string, modTime time.Time) Item + func (r *Run) WriteObjectTo(ctx context.Context, f fs.Fs, remote, content string, modTime time.Time, ...) Item + func (r *Run) WriteUncheckedObject(ctx context.Context, remote, content string, modTime time.Time) Item