Documentation ¶
Index ¶
- type MockCommand
- type MockRunner
- func (m *MockRunner) AssertAllCalled()
- func (m *MockRunner) AssertCalled(commandAndArgs string)
- func (m *MockRunner) ErrorOnCall(commandAndArgs string, err error)
- func (m *MockRunner) MkdirAll(path string, perm os.FileMode) error
- func (m *MockRunner) OutputOnCall(commandAndArgs string, output string)
- func (m *MockRunner) RegisterDeviceForStat(path string)
- func (m *MockRunner) RegisterDirectoryForStat(path string)
- func (m *MockRunner) RegisterMkdirAll(path string)
- func (m *MockRunner) Run(commandAndArgs ...string) (string, error)
- func (m *MockRunner) Stat(path string) (os.FileInfo, error)
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommand ¶
type MockCommand struct {
// contains filtered or unexported fields
}
type MockRunner ¶
type MockRunner struct { FailOnUnexpectedCalls bool // contains filtered or unexported fields }
func NewMockRunner ¶
func NewMockRunner(t *testing.T) *MockRunner
func (*MockRunner) AssertAllCalled ¶
func (m *MockRunner) AssertAllCalled()
func (*MockRunner) AssertCalled ¶
func (m *MockRunner) AssertCalled(commandAndArgs string)
func (*MockRunner) ErrorOnCall ¶
func (m *MockRunner) ErrorOnCall(commandAndArgs string, err error)
func (*MockRunner) OutputOnCall ¶
func (m *MockRunner) OutputOnCall(commandAndArgs string, output string)
func (*MockRunner) RegisterDeviceForStat ¶
func (m *MockRunner) RegisterDeviceForStat(path string)
func (*MockRunner) RegisterDirectoryForStat ¶
func (m *MockRunner) RegisterDirectoryForStat(path string)
func (*MockRunner) RegisterMkdirAll ¶
func (m *MockRunner) RegisterMkdirAll(path string)
Click to show internal directories.
Click to hide internal directories.