Documentation
¶
Index ¶
Constants ¶
View Source
const ( FixturesDir = "testdata" SubCmdFlags = "SUB_CMD_FLAGS" TmpDir = "tmp" Remotes = TmpDir + PS + "remotes" PS = string(os.PathSeparator) )
Variables ¶
This section is empty.
Functions ¶
func GetTestBinCmd ¶
GetTestBinCmd return a command to run the test binary in a sub-process, passing it flags as fixtures to produce expected output; `TestMain`, will be run automatically.
func SetupARepository ¶
func Silencer ¶
func Silencer() func()
Silencer return a function that prevents output during a test run.
func TmpSetParentDataDir ¶
func TmpSetParentDataDir(d string) func()
TmpSetParentDataDir set the LOCALAPPDATA or HOME environment var for a unit test.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.