Prevent further use of SetPrepareCmd and InitCmdStubber

This commit is contained in:
Mislav Marohnić 2021-01-18 22:44:53 +01:00
parent 5531498f27
commit c308f1cd91
11 changed files with 56 additions and 2 deletions

View file

@ -49,6 +49,7 @@ type CmdStubber struct {
Calls []*exec.Cmd
}
// Deprecated: use run.Stub
func InitCmdStubber() (*CmdStubber, func()) {
cs := CmdStubber{}
teardown := run.SetPrepareCmd(createStubbedPrepareCmd(&cs))