Documentation ¶
Overview ¶
Package fstests provides generic tests for testing the Fs and Object interfaces
Run go generate to write the tests for the remotes
Index ¶
- Variables
- func TestFinalise(t *testing.T)
- func TestFsCopy(t *testing.T)
- func TestFsDirMove(t *testing.T)
- func TestFsListDirEmpty(t *testing.T)
- func TestFsListDirFile2(t *testing.T)
- func TestFsListDirRoot(t *testing.T)
- func TestFsListEmpty(t *testing.T)
- func TestFsListFile1(t *testing.T)
- func TestFsListFile1and2(t *testing.T)
- func TestFsListRoot(t *testing.T)
- func TestFsMkdir(t *testing.T)
- func TestFsMove(t *testing.T)
- func TestFsNewFsObject(t *testing.T)
- func TestFsNewFsObjectNotFound(t *testing.T)
- func TestFsPrecision(t *testing.T)
- func TestFsPutFile1(t *testing.T)
- func TestFsPutFile2(t *testing.T)
- func TestFsRmdirEmpty(t *testing.T)
- func TestFsRmdirFull(t *testing.T)
- func TestFsRmdirNotFound(t *testing.T)
- func TestFsString(t *testing.T)
- func TestInit(t *testing.T)
- func TestLimitedFs(t *testing.T)
- func TestLimitedFsNotFound(t *testing.T)
- func TestObjectFs(t *testing.T)
- func TestObjectMd5sum(t *testing.T)
- func TestObjectModTime(t *testing.T)
- func TestObjectOpen(t *testing.T)
- func TestObjectPurge(t *testing.T)
- func TestObjectRemote(t *testing.T)
- func TestObjectRemove(t *testing.T)
- func TestObjectSetModTime(t *testing.T)
- func TestObjectSize(t *testing.T)
- func TestObjectStorable(t *testing.T)
- func TestObjectString(t *testing.T)
- func TestObjectUpdate(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
var ( // RemoteName should be set to the name of the remote for testing RemoteName = "" // NilObject should be set to a nil Object from the Fs under test NilObject fs.Object )
Functions ¶
func TestFsListDirEmpty ¶
TestFsListDirEmpty tests listing the directories from an empty directory
func TestFsListDirFile2 ¶
TestFsListDirFile2 tests the files are correctly uploaded
func TestFsListDirRoot ¶
TestFsListDirRoot tests that DirList works in the root
func TestFsListEmpty ¶
TestFsListEmpty tests listing an empty directory
func TestFsListFile1and2 ¶
TestFsListFile1and2 tests two files present
func TestFsNewFsObjectNotFound ¶
TestFsNewFsObjectNotFound tests not finding a object
func TestFsPrecision ¶
TestFsPrecision tests the Precision of the Fs
func TestFsPutFile2 ¶
TestFsPutFile2 tests putting a file into a subdirectory
func TestFsRmdirEmpty ¶
TestFsRmdirEmpty tests deleting an empty directory
func TestFsRmdirFull ¶
TestFsRmdirFull tests removing a non empty directory
func TestFsRmdirNotFound ¶
TestFsRmdirNotFound tests deleting a non existent directory
func TestLimitedFs ¶
TestLimitedFs tests that a LimitedFs is created
func TestLimitedFsNotFound ¶
TestLimitedFsNotFound tests that a LimitedFs is not created if no object
func TestObjectMd5sum ¶
TestObjectMd5sum tests the MD5SUM of the object is correct
func TestObjectModTime ¶
TestObjectModTime tests the ModTime of the object is correct
func TestObjectRemote ¶
TestObjectRemote tests the Remote is correct
func TestObjectSetModTime ¶
TestObjectSetModTime tests that SetModTime works
func TestObjectStorable ¶
TestObjectStorable tests that Storable works
func TestObjectString ¶
TestObjectString tests the Object String method
func TestObjectUpdate ¶
TestObjectUpdate tests that Update works
Types ¶
This section is empty.