Prevent further use of SetPrepareCmd and InitCmdStubber
This commit is contained in:
parent
5531498f27
commit
c308f1cd91
11 changed files with 56 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue