github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/host/internal/lib/dputils/mock/mock_dputils.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: dputils.go 3 4 // Package mock_dputils is a generated GoMock package. 5 package mock_dputils 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockDPUtilsLib is a mock of DPUtilsLib interface. 14 type MockDPUtilsLib struct { 15 ctrl *gomock.Controller 16 recorder *MockDPUtilsLibMockRecorder 17 } 18 19 // MockDPUtilsLibMockRecorder is the mock recorder for MockDPUtilsLib. 20 type MockDPUtilsLibMockRecorder struct { 21 mock *MockDPUtilsLib 22 } 23 24 // NewMockDPUtilsLib creates a new mock instance. 25 func NewMockDPUtilsLib(ctrl *gomock.Controller) *MockDPUtilsLib { 26 mock := &MockDPUtilsLib{ctrl: ctrl} 27 mock.recorder = &MockDPUtilsLibMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockDPUtilsLib) EXPECT() *MockDPUtilsLibMockRecorder { 33 return m.recorder 34 } 35 36 // GetDriverName mocks base method. 37 func (m *MockDPUtilsLib) GetDriverName(pciAddr string) (string, error) { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "GetDriverName", pciAddr) 40 ret0, _ := ret[0].(string) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // GetDriverName indicates an expected call of GetDriverName. 46 func (mr *MockDPUtilsLibMockRecorder) GetDriverName(pciAddr interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDriverName", reflect.TypeOf((*MockDPUtilsLib)(nil).GetDriverName), pciAddr) 49 } 50 51 // GetNetNames mocks base method. 52 func (m *MockDPUtilsLib) GetNetNames(pciAddr string) ([]string, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "GetNetNames", pciAddr) 55 ret0, _ := ret[0].([]string) 56 ret1, _ := ret[1].(error) 57 return ret0, ret1 58 } 59 60 // GetNetNames indicates an expected call of GetNetNames. 61 func (mr *MockDPUtilsLibMockRecorder) GetNetNames(pciAddr interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNetNames", reflect.TypeOf((*MockDPUtilsLib)(nil).GetNetNames), pciAddr) 64 } 65 66 // GetSriovVFcapacity mocks base method. 67 func (m *MockDPUtilsLib) GetSriovVFcapacity(pf string) int { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "GetSriovVFcapacity", pf) 70 ret0, _ := ret[0].(int) 71 return ret0 72 } 73 74 // GetSriovVFcapacity indicates an expected call of GetSriovVFcapacity. 75 func (mr *MockDPUtilsLibMockRecorder) GetSriovVFcapacity(pf interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSriovVFcapacity", reflect.TypeOf((*MockDPUtilsLib)(nil).GetSriovVFcapacity), pf) 78 } 79 80 // GetVFID mocks base method. 81 func (m *MockDPUtilsLib) GetVFID(pciAddr string) (int, error) { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "GetVFID", pciAddr) 84 ret0, _ := ret[0].(int) 85 ret1, _ := ret[1].(error) 86 return ret0, ret1 87 } 88 89 // GetVFID indicates an expected call of GetVFID. 90 func (mr *MockDPUtilsLibMockRecorder) GetVFID(pciAddr interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVFID", reflect.TypeOf((*MockDPUtilsLib)(nil).GetVFID), pciAddr) 93 } 94 95 // GetVFList mocks base method. 96 func (m *MockDPUtilsLib) GetVFList(pf string) ([]string, error) { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "GetVFList", pf) 99 ret0, _ := ret[0].([]string) 100 ret1, _ := ret[1].(error) 101 return ret0, ret1 102 } 103 104 // GetVFList indicates an expected call of GetVFList. 105 func (mr *MockDPUtilsLibMockRecorder) GetVFList(pf interface{}) *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVFList", reflect.TypeOf((*MockDPUtilsLib)(nil).GetVFList), pf) 108 } 109 110 // GetVFconfigured mocks base method. 111 func (m *MockDPUtilsLib) GetVFconfigured(pf string) int { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "GetVFconfigured", pf) 114 ret0, _ := ret[0].(int) 115 return ret0 116 } 117 118 // GetVFconfigured indicates an expected call of GetVFconfigured. 119 func (mr *MockDPUtilsLibMockRecorder) GetVFconfigured(pf interface{}) *gomock.Call { 120 mr.mock.ctrl.T.Helper() 121 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVFconfigured", reflect.TypeOf((*MockDPUtilsLib)(nil).GetVFconfigured), pf) 122 } 123 124 // IsSriovPF mocks base method. 125 func (m *MockDPUtilsLib) IsSriovPF(pciAddr string) bool { 126 m.ctrl.T.Helper() 127 ret := m.ctrl.Call(m, "IsSriovPF", pciAddr) 128 ret0, _ := ret[0].(bool) 129 return ret0 130 } 131 132 // IsSriovPF indicates an expected call of IsSriovPF. 133 func (mr *MockDPUtilsLibMockRecorder) IsSriovPF(pciAddr interface{}) *gomock.Call { 134 mr.mock.ctrl.T.Helper() 135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSriovPF", reflect.TypeOf((*MockDPUtilsLib)(nil).IsSriovPF), pciAddr) 136 } 137 138 // IsSriovVF mocks base method. 139 func (m *MockDPUtilsLib) IsSriovVF(pciAddr string) bool { 140 m.ctrl.T.Helper() 141 ret := m.ctrl.Call(m, "IsSriovVF", pciAddr) 142 ret0, _ := ret[0].(bool) 143 return ret0 144 } 145 146 // IsSriovVF indicates an expected call of IsSriovVF. 147 func (mr *MockDPUtilsLibMockRecorder) IsSriovVF(pciAddr interface{}) *gomock.Call { 148 mr.mock.ctrl.T.Helper() 149 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSriovVF", reflect.TypeOf((*MockDPUtilsLib)(nil).IsSriovVF), pciAddr) 150 } 151 152 // SriovConfigured mocks base method. 153 func (m *MockDPUtilsLib) SriovConfigured(addr string) bool { 154 m.ctrl.T.Helper() 155 ret := m.ctrl.Call(m, "SriovConfigured", addr) 156 ret0, _ := ret[0].(bool) 157 return ret0 158 } 159 160 // SriovConfigured indicates an expected call of SriovConfigured. 161 func (mr *MockDPUtilsLibMockRecorder) SriovConfigured(addr interface{}) *gomock.Call { 162 mr.mock.ctrl.T.Helper() 163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SriovConfigured", reflect.TypeOf((*MockDPUtilsLib)(nil).SriovConfigured), addr) 164 }