github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/pkg/host/internal/lib/ethtool/mock/mock_ethtool.go (about)

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