diff options
Diffstat (limited to 'helper/export_test.go')
| -rw-r--r-- | helper/export_test.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/helper/export_test.go b/helper/export_test.go deleted file mode 100644 index 6bf18ce3..00000000 --- a/helper/export_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package helper - -import ( - "os" - "os/exec" - "testing" -) - -// replace execCommand to have the resulting *exec.Cmd launch TestHelperChildStub -func ReplaceExecCommand(t *testing.T) { - t.Cleanup(func() { - execCommand = exec.Command - }) - - execCommand = func(name string, arg ...string) *exec.Cmd { - return exec.Command(os.Args[0], append([]string{"-test.run=TestHelperChildStub", "--", name}, arg...)...) - } -} |
