testing_utils

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFilePropertiesEqual

func CheckFilePropertiesEqual(filePath1, filePath2 string) error

Types

type RemoteFileSystem

type RemoteFileSystem struct {
	afero.Fs
}

func NewTestingRemoteFileSystem

func NewTestingRemoteFileSystem() *RemoteFileSystem

func (*RemoteFileSystem) TempDir

func (r *RemoteFileSystem) TempDir() (name string, err error)

type TestDataContainer

type TestDataContainer struct {
	FullDir          string
	TestDataBaseFs   afero.Fs
	RelativeAllPaths []string
	RelativeDirs     []string
	RelativeFiles    []string
}

func NewTestDataContainer

func NewTestDataContainer(relativeTestDataDir string, expectedMinFileCount int) (*TestDataContainer, error)

func (*TestDataContainer) ForeachRelativeDir

func (t *TestDataContainer) ForeachRelativeDir(onEach func(f string))

func (*TestDataContainer) ForeachRelativeFile

func (t *TestDataContainer) ForeachRelativeFile(onEach func(f string))

func (*TestDataContainer) ForeachRelativePath

func (t *TestDataContainer) ForeachRelativePath(onEach func(f string))

Jump to

Keyboard shortcuts

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