func WithWorkingDir(t *testing.T, dir string, fn func())
WithWorkingDir runs fn with dir as the current working directory and restores the previous directory.
t is the active test; dir is the temporary working directory for fn.
WriteStub writes an executable shell stub that exits successfully.
t is the active test; dir is the output directory; name is the executable file name.
WriteStubExpectArg writes an executable shell stub that succeeds only when expectedArg is present.
t is the active test; dir is the output directory; name is the executable file name.
WriteStubWithExit writes an executable shell stub that exits with the provided code.
t is the active test; dir is the output directory; name is the executable file name.