github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/utils/mock/mock_store.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: store.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 v1 "github.com/k8snetworkplumbingwg/sriov-network-operator/api/v1" 12 ) 13 14 // MockStoreManagerInterface is a mock of StoreManagerInterface interface. 15 type MockStoreManagerInterface struct { 16 ctrl *gomock.Controller 17 recorder *MockStoreManagerInterfaceMockRecorder 18 } 19 20 // MockStoreManagerInterfaceMockRecorder is the mock recorder for MockStoreManagerInterface. 21 type MockStoreManagerInterfaceMockRecorder struct { 22 mock *MockStoreManagerInterface 23 } 24 25 // NewMockStoreManagerInterface creates a new mock instance. 26 func NewMockStoreManagerInterface(ctrl *gomock.Controller) *MockStoreManagerInterface { 27 mock := &MockStoreManagerInterface{ctrl: ctrl} 28 mock.recorder = &MockStoreManagerInterfaceMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockStoreManagerInterface) EXPECT() *MockStoreManagerInterfaceMockRecorder { 34 return m.recorder 35 } 36 37 // ClearPCIAddressFolder mocks base method. 38 func (m *MockStoreManagerInterface) ClearPCIAddressFolder() error { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "ClearPCIAddressFolder") 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // ClearPCIAddressFolder indicates an expected call of ClearPCIAddressFolder. 46 func (mr *MockStoreManagerInterfaceMockRecorder) ClearPCIAddressFolder() *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearPCIAddressFolder", reflect.TypeOf((*MockStoreManagerInterface)(nil).ClearPCIAddressFolder)) 49 } 50 51 // LoadPfsStatus mocks base method. 52 func (m *MockStoreManagerInterface) LoadPfsStatus(pciAddress string) (*v1.Interface, bool, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "LoadPfsStatus", pciAddress) 55 ret0, _ := ret[0].(*v1.Interface) 56 ret1, _ := ret[1].(bool) 57 ret2, _ := ret[2].(error) 58 return ret0, ret1, ret2 59 } 60 61 // LoadPfsStatus indicates an expected call of LoadPfsStatus. 62 func (mr *MockStoreManagerInterfaceMockRecorder) LoadPfsStatus(pciAddress interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPfsStatus", reflect.TypeOf((*MockStoreManagerInterface)(nil).LoadPfsStatus), pciAddress) 65 } 66 67 // SaveLastPfAppliedStatus mocks base method. 68 func (m *MockStoreManagerInterface) SaveLastPfAppliedStatus(PfInfo *v1.Interface) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "SaveLastPfAppliedStatus", PfInfo) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // SaveLastPfAppliedStatus indicates an expected call of SaveLastPfAppliedStatus. 76 func (mr *MockStoreManagerInterfaceMockRecorder) SaveLastPfAppliedStatus(PfInfo interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveLastPfAppliedStatus", reflect.TypeOf((*MockStoreManagerInterface)(nil).SaveLastPfAppliedStatus), PfInfo) 79 }