Documentation ¶
Overview ¶
Package test is a generated GoMock package.
Index ¶
- type MockOSContext
- func (m *MockOSContext) EXPECT() *MockOSContextMockRecorder
- func (m *MockOSContext) GetHomeDir() (string, error)
- func (m *MockOSContext) RunCommand(name string, args ...string) (bytes.Buffer, error)
- func (m *MockOSContext) RunCommandBytes(name string, args ...string) ([]byte, error)
- func (m *MockOSContext) RunCommandString(name string, args ...string) (string, error)
- type MockOSContextMockRecorder
- func (mr *MockOSContextMockRecorder) GetHomeDir() *gomock.Call
- func (mr *MockOSContextMockRecorder) RunCommand(name interface{}, args ...interface{}) *gomock.Call
- func (mr *MockOSContextMockRecorder) RunCommandBytes(name interface{}, args ...interface{}) *gomock.Call
- func (mr *MockOSContextMockRecorder) RunCommandString(name interface{}, args ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOSContext ¶
type MockOSContext struct {
// contains filtered or unexported fields
}
MockOSContext is a mock of OSContext interface
func NewMockOSContext ¶
func NewMockOSContext(ctrl *gomock.Controller) *MockOSContext
NewMockOSContext creates a new mock instance
func (*MockOSContext) EXPECT ¶
func (m *MockOSContext) EXPECT() *MockOSContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOSContext) GetHomeDir ¶
func (m *MockOSContext) GetHomeDir() (string, error)
GetHomeDir mocks base method
func (*MockOSContext) RunCommand ¶
RunCommand mocks base method
func (*MockOSContext) RunCommandBytes ¶
func (m *MockOSContext) RunCommandBytes(name string, args ...string) ([]byte, error)
RunCommandBytes mocks base method
func (*MockOSContext) RunCommandString ¶
func (m *MockOSContext) RunCommandString(name string, args ...string) (string, error)
RunCommandString mocks base method
type MockOSContextMockRecorder ¶
type MockOSContextMockRecorder struct {
// contains filtered or unexported fields
}
MockOSContextMockRecorder is the mock recorder for MockOSContext
func (*MockOSContextMockRecorder) GetHomeDir ¶
func (mr *MockOSContextMockRecorder) GetHomeDir() *gomock.Call
GetHomeDir indicates an expected call of GetHomeDir
func (*MockOSContextMockRecorder) RunCommand ¶
func (mr *MockOSContextMockRecorder) RunCommand(name interface{}, args ...interface{}) *gomock.Call
RunCommand indicates an expected call of RunCommand
func (*MockOSContextMockRecorder) RunCommandBytes ¶
func (mr *MockOSContextMockRecorder) RunCommandBytes(name interface{}, args ...interface{}) *gomock.Call
RunCommandBytes indicates an expected call of RunCommandBytes
func (*MockOSContextMockRecorder) RunCommandString ¶
func (mr *MockOSContextMockRecorder) RunCommandString(name interface{}, args ...interface{}) *gomock.Call
RunCommandString indicates an expected call of RunCommandString