test

package
v0.0.0-...-b7787a3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS(t *testing.T, pkg string) (afero.Fs, func())

FS creates a new tempdir for pkg and returns an FS rooted at the tempdir and a function that deletes the whole filesystem when called.

func WriteFile

func WriteFile(
	t *testing.T,
	fs afero.Fs,
	path string,
	contents string,
	perm os.FileMode,
)

WriteFile writes the provided contents at the provided path (while creating any intervening directories as needed) using the provided perms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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