help

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAllFiles

func AssertAllFiles(t *testing.T, dotPath string, want map[string]string)

func AssertDirectoryContents

func AssertDirectoryContents(t *testing.T, dir string, want []string)

func AssertDirectoryContentsRecursive

func AssertDirectoryContentsRecursive(t *testing.T, dir string, want []string)

func AssertFileContents

func AssertFileContents(t *testing.T, path string, want string)

func AssertSymlinkTo

func AssertSymlinkTo(t *testing.T, link string, source string)

func AssertTargetContents

func AssertTargetContents(t *testing.T, dotPath string, target string, want []string)

func CreateTempDir

func CreateTempDir(t *testing.T, pattern string) (string, func())

func Ensure

func Ensure(t *testing.T, err error)

func GetAllFiles

func GetAllFiles(t *testing.T, dotPath string) map[string]string

func ReadFile

func ReadFile(t *testing.T, path string) string

func SetupDirectories

func SetupDirectories(t *testing.T, target string) (string, string, func())

func SetupFullConfig

func SetupFullConfig(t *testing.T, target string, data *string) (string, string, func())

func ShouldError

func ShouldError(t *testing.T, err error)

func WriteConfig

func WriteConfig(t *testing.T, basedir string, contents string)

func WriteData

func WriteData(t *testing.T, path string, data string)

func WriteRepoConf

func WriteRepoConf(t *testing.T, dotDir string, contents string)

Types

type TempHomeDir

type TempHomeDir struct {
	HomeDir string
}

func (*TempHomeDir) GetHomeDir

func (t *TempHomeDir) GetHomeDir() (string, error)

Jump to

Keyboard shortcuts

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