 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var PrepareCmd = func(cmd *exec.Cmd) Runnable {
	return &cmdWithStderr{cmd}
}
    PrepareCmd extends exec.Cmd with extra error reporting features and provides a hook to stub command execution in tests
Functions ¶
func SetPrepareCmd ¶
SetPrepareCmd overrides PrepareCmd and returns a func to revert it back
Types ¶
type CommandCallback ¶ added in v1.1.0
type CommandCallback func([]string)
type CommandStubber ¶ added in v1.1.0
type CommandStubber struct {
	// contains filtered or unexported fields
}
    func Stub ¶ added in v1.1.0
func Stub() (*CommandStubber, func(T))
func (*CommandStubber) Register ¶ added in v1.1.0
func (cs *CommandStubber) Register(p string, exitStatus int, output string, callbacks ...CommandCallback)
 Click to show internal directories. 
   Click to hide internal directories.