github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/utils/mock/mock_utils.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: utils.go
     3  
     4  // Package mock_utils is a generated GoMock package.
     5  package mock_utils
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // MockCmdInterface is a mock of CmdInterface interface.
    14  type MockCmdInterface struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockCmdInterfaceMockRecorder
    17  }
    18  
    19  // MockCmdInterfaceMockRecorder is the mock recorder for MockCmdInterface.
    20  type MockCmdInterfaceMockRecorder struct {
    21  	mock *MockCmdInterface
    22  }
    23  
    24  // NewMockCmdInterface creates a new mock instance.
    25  func NewMockCmdInterface(ctrl *gomock.Controller) *MockCmdInterface {
    26  	mock := &MockCmdInterface{ctrl: ctrl}
    27  	mock.recorder = &MockCmdInterfaceMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockCmdInterface) EXPECT() *MockCmdInterfaceMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Chroot mocks base method.
    37  func (m *MockCmdInterface) Chroot(arg0 string) (func() error, error) {
    38  	m.ctrl.T.Helper()
    39  	ret := m.ctrl.Call(m, "Chroot", arg0)
    40  	ret0, _ := ret[0].(func() error)
    41  	ret1, _ := ret[1].(error)
    42  	return ret0, ret1
    43  }
    44  
    45  // Chroot indicates an expected call of Chroot.
    46  func (mr *MockCmdInterfaceMockRecorder) Chroot(arg0 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Chroot", reflect.TypeOf((*MockCmdInterface)(nil).Chroot), arg0)
    49  }
    50  
    51  // RunCommand mocks base method.
    52  func (m *MockCmdInterface) RunCommand(arg0 string, arg1 ...string) (string, string, error) {
    53  	m.ctrl.T.Helper()
    54  	varargs := []interface{}{arg0}
    55  	for _, a := range arg1 {
    56  		varargs = append(varargs, a)
    57  	}
    58  	ret := m.ctrl.Call(m, "RunCommand", varargs...)
    59  	ret0, _ := ret[0].(string)
    60  	ret1, _ := ret[1].(string)
    61  	ret2, _ := ret[2].(error)
    62  	return ret0, ret1, ret2
    63  }
    64  
    65  // RunCommand indicates an expected call of RunCommand.
    66  func (mr *MockCmdInterfaceMockRecorder) RunCommand(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	varargs := append([]interface{}{arg0}, arg1...)
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCommand", reflect.TypeOf((*MockCmdInterface)(nil).RunCommand), varargs...)
    70  }