# Packages
Package fstests provides generic integration tests for the Fs and Object interfaces.
Package mockdir makes a mock fs.Directory object.
Package mockfs provides mock Fs for testing.
Package mockobject provides a mock object which can be created from a string.
Run tests for all the remotes.
Package testserver starts and stops test servers if required.
Package testy contains test utilities for rclone.
# Functions
AssertTimeEqualWithPrecision checks that want is within precision of got, asserting that with t and logging remote.
CheckItems checks the fs to see if it has only the items passed in using a precision of fs.Config.ModifyWindow.
CheckItemsWithPrecision checks the fs with the specified precision to see if it has the expected items.
CheckListing checks the fs to see if it has the expected contents.
CheckListingWithPrecision checks the fs to see if it has the expected contents with the given precision.
CheckListingWithRoot checks the fs to see if it has the expected contents with the given precision.
CheckTimeEqualWithPrecision checks the times are equal within the precision, returns the delta and a flag.
CompareItems compares a set of DirEntries to a slice of items and a list of dirs The modtimes are compared with the precision supplied.
Initialise rclone for testing.
LocalRemote creates a temporary directory name for local remotes.
NewItem creates an item from a string content.
NewItems makes an Items.
NewRun initialise the remote and local for testing and returns a run object.
NewRunIndividual as per NewRun but makes an individual remote for this test.
Normalize runs a utf8 normalization on the string if running on OS X.
Purge is a simplified re-implementation of operations.Purge for the test routine cleanup to avoid circular dependencies.
RandomRemote makes a random bucket or subdirectory on the remote from the -remote parameter
Call the finalise function returned to Purge the fs at the end (and the parent if necessary)
Returns the remote, its url, a finaliser and an error.
RandomRemoteName makes a random bucket or subdirectory name
Returns a random remote name plus the leaf name.
TestMain drives the tests.
Time parses a time string or logs a fatal error.
# Variables
Globals.
Globals.
Globals.
ListRetries is the number of times to retry a listing to overcome eventual consistency.
Globals.
MatchTestRemote matches the remote names used for testing.
Globals.
SizeLimit signals tests to skip maximum test file size and skip inappropriate runs.
Globals.
Globals.