You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
3 years ago
|
// Code generated by MockGen. DO NOT EDIT.
|
||
|
// Source: collector/pkg/common/shell/interface.go
|
||
|
|
||
|
// Package mock_shell is a generated GoMock package.
|
||
|
package mock_shell
|
||
|
|
||
|
import (
|
||
|
reflect "reflect"
|
||
|
|
||
|
gomock "github.com/golang/mock/gomock"
|
||
|
logrus "github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
// MockInterface is a mock of Interface interface.
|
||
|
type MockInterface struct {
|
||
|
ctrl *gomock.Controller
|
||
|
recorder *MockInterfaceMockRecorder
|
||
|
}
|
||
|
|
||
|
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
|
||
|
type MockInterfaceMockRecorder struct {
|
||
|
mock *MockInterface
|
||
|
}
|
||
|
|
||
|
// NewMockInterface creates a new mock instance.
|
||
|
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
|
||
|
mock := &MockInterface{ctrl: ctrl}
|
||
|
mock.recorder = &MockInterfaceMockRecorder{mock}
|
||
|
return mock
|
||
|
}
|
||
|
|
||
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
||
|
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
|
||
|
return m.recorder
|
||
|
}
|
||
|
|
||
|
// Command mocks base method.
|
||
|
func (m *MockInterface) Command(logger *logrus.Entry, cmdName string, cmdArgs []string, workingDir string, environ []string) (string, error) {
|
||
|
m.ctrl.T.Helper()
|
||
|
ret := m.ctrl.Call(m, "Command", logger, cmdName, cmdArgs, workingDir, environ)
|
||
|
ret0, _ := ret[0].(string)
|
||
|
ret1, _ := ret[1].(error)
|
||
|
return ret0, ret1
|
||
|
}
|
||
|
|
||
|
// Command indicates an expected call of Command.
|
||
|
func (mr *MockInterfaceMockRecorder) Command(logger, cmdName, cmdArgs, workingDir, environ interface{}) *gomock.Call {
|
||
|
mr.mock.ctrl.T.Helper()
|
||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockInterface)(nil).Command), logger, cmdName, cmdArgs, workingDir, environ)
|
||
|
}
|