fstests

package
v0.0.0-...-e7704eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 12 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 TestFinalise

func TestFinalise(t *testing.T)

TestFinalise tidies up after the previous tests

func TestFsCopy

func TestFsCopy(t *testing.T)

TestFsCopy tests Copy

func TestFsDirMove

func TestFsDirMove(t *testing.T)

TestFsDirMove tests DirMove

func TestFsListDirEmpty

func TestFsListDirEmpty(t *testing.T)

TestFsListDirEmpty tests listing the directories from an empty directory

func TestFsListDirFile2

func TestFsListDirFile2(t *testing.T)

TestFsListDirFile2 tests the files are correctly uploaded

func TestFsListDirRoot

func TestFsListDirRoot(t *testing.T)

TestFsListDirRoot tests that DirList works in the root

func TestFsListEmpty

func TestFsListEmpty(t *testing.T)

TestFsListEmpty tests listing an empty directory

func TestFsListFile1

func TestFsListFile1(t *testing.T)

TestFsListFile1 tests file present

func TestFsListFile1and2

func TestFsListFile1and2(t *testing.T)

TestFsListFile1and2 tests two files present

func TestFsListRoot

func TestFsListRoot(t *testing.T)

TestFsListRoot tests List works in the root

func TestFsMkdir

func TestFsMkdir(t *testing.T)

TestFsMkdir tests tests making a directory

func TestFsMove

func TestFsMove(t *testing.T)

TestFsMove tests Move

func TestFsNewFsObject

func TestFsNewFsObject(t *testing.T)

TestFsNewFsObject tests NewFsObject

func TestFsNewFsObjectNotFound

func TestFsNewFsObjectNotFound(t *testing.T)

TestFsNewFsObjectNotFound tests not finding a object

func TestFsPrecision

func TestFsPrecision(t *testing.T)

TestFsPrecision tests the Precision of the Fs

func TestFsPutFile1

func TestFsPutFile1(t *testing.T)

TestFsPutFile1 tests putting a file

func TestFsPutFile2

func TestFsPutFile2(t *testing.T)

TestFsPutFile2 tests putting a file into a subdirectory

func TestFsRmdirEmpty

func TestFsRmdirEmpty(t *testing.T)

TestFsRmdirEmpty tests deleting an empty directory

func TestFsRmdirFull

func TestFsRmdirFull(t *testing.T)

TestFsRmdirFull tests removing a non empty directory

func TestFsRmdirNotFound

func TestFsRmdirNotFound(t *testing.T)

TestFsRmdirNotFound tests deleting a non existent directory

func TestFsString

func TestFsString(t *testing.T)

TestFsString tests the String method

func TestInit

func TestInit(t *testing.T)

TestInit tests basic intitialisation

func TestLimitedFs

func TestLimitedFs(t *testing.T)

TestLimitedFs tests that a LimitedFs is created

func TestLimitedFsNotFound

func TestLimitedFsNotFound(t *testing.T)

TestLimitedFsNotFound tests that a LimitedFs is not created if no object

func TestObjectFs

func TestObjectFs(t *testing.T)

TestObjectFs tests the object can be found

func TestObjectMd5sum

func TestObjectMd5sum(t *testing.T)

TestObjectMd5sum tests the MD5SUM of the object is correct

func TestObjectModTime

func TestObjectModTime(t *testing.T)

TestObjectModTime tests the ModTime of the object is correct

func TestObjectOpen

func TestObjectOpen(t *testing.T)

TestObjectOpen tests that Open works

func TestObjectPurge

func TestObjectPurge(t *testing.T)

TestObjectPurge tests Purge

func TestObjectRemote

func TestObjectRemote(t *testing.T)

TestObjectRemote tests the Remote is correct

func TestObjectRemove

func TestObjectRemove(t *testing.T)

TestObjectRemove tests Remove

func TestObjectSetModTime

func TestObjectSetModTime(t *testing.T)

TestObjectSetModTime tests that SetModTime works

func TestObjectSize

func TestObjectSize(t *testing.T)

TestObjectSize tests that Size works

func TestObjectStorable

func TestObjectStorable(t *testing.T)

TestObjectStorable tests that Storable works

func TestObjectString

func TestObjectString(t *testing.T)

TestObjectString tests the Object String method

func TestObjectUpdate

func TestObjectUpdate(t *testing.T)

TestObjectUpdate tests that Update works

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL