• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

k8snetworkplumbingwg / sriov-network-operator / 10179580977

31 Jul 2024 11:45AM UTC coverage: 43.816% (-0.2%) from 43.968%
10179580977

Pull #733

github

web-flow
Merge d80add92c into 57e1e9056
Pull Request #733: feat: implement MlxResetFW to reset the FW on VF changes

1 of 63 new or added lines in 6 files covered. (1.59%)

6 existing lines in 2 files now uncovered.

6536 of 14917 relevant lines covered (43.82%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pkg/vendors/mellanox/mock/mock_mellanox.go
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: mellanox.go
3

4
// Package mock_mlxutils is a generated GoMock package.
5
package mock_mlxutils
6

7
import (
8
        reflect "reflect"
9

10
        gomock "github.com/golang/mock/gomock"
11
        mlxutils "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/vendors/mellanox"
12
)
13

14
// MockMellanoxInterface is a mock of MellanoxInterface interface.
15
type MockMellanoxInterface struct {
16
        ctrl     *gomock.Controller
17
        recorder *MockMellanoxInterfaceMockRecorder
18
}
19

20
// MockMellanoxInterfaceMockRecorder is the mock recorder for MockMellanoxInterface.
21
type MockMellanoxInterfaceMockRecorder struct {
22
        mock *MockMellanoxInterface
23
}
24

25
// NewMockMellanoxInterface creates a new mock instance.
26
func NewMockMellanoxInterface(ctrl *gomock.Controller) *MockMellanoxInterface {
×
27
        mock := &MockMellanoxInterface{ctrl: ctrl}
×
28
        mock.recorder = &MockMellanoxInterfaceMockRecorder{mock}
×
29
        return mock
×
30
}
×
31

32
// EXPECT returns an object that allows the caller to indicate expected use.
33
func (m *MockMellanoxInterface) EXPECT() *MockMellanoxInterfaceMockRecorder {
×
34
        return m.recorder
×
35
}
×
36

37
// GetMellanoxBlueFieldMode mocks base method.
38
func (m *MockMellanoxInterface) GetMellanoxBlueFieldMode(arg0 string) (mlxutils.BlueFieldMode, error) {
×
39
        m.ctrl.T.Helper()
×
40
        ret := m.ctrl.Call(m, "GetMellanoxBlueFieldMode", arg0)
×
41
        ret0, _ := ret[0].(mlxutils.BlueFieldMode)
×
42
        ret1, _ := ret[1].(error)
×
43
        return ret0, ret1
×
44
}
×
45

46
// GetMellanoxBlueFieldMode indicates an expected call of GetMellanoxBlueFieldMode.
47
func (mr *MockMellanoxInterfaceMockRecorder) GetMellanoxBlueFieldMode(arg0 interface{}) *gomock.Call {
×
48
        mr.mock.ctrl.T.Helper()
×
49
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMellanoxBlueFieldMode", reflect.TypeOf((*MockMellanoxInterface)(nil).GetMellanoxBlueFieldMode), arg0)
×
50
}
×
51

52
// GetMlxNicFwData mocks base method.
53
func (m *MockMellanoxInterface) GetMlxNicFwData(pciAddress string) (*mlxutils.MlxNic, *mlxutils.MlxNic, error) {
×
54
        m.ctrl.T.Helper()
×
55
        ret := m.ctrl.Call(m, "GetMlxNicFwData", pciAddress)
×
56
        ret0, _ := ret[0].(*mlxutils.MlxNic)
×
57
        ret1, _ := ret[1].(*mlxutils.MlxNic)
×
58
        ret2, _ := ret[2].(error)
×
59
        return ret0, ret1, ret2
×
60
}
×
61

62
// GetMlxNicFwData indicates an expected call of GetMlxNicFwData.
63
func (mr *MockMellanoxInterfaceMockRecorder) GetMlxNicFwData(pciAddress interface{}) *gomock.Call {
×
64
        mr.mock.ctrl.T.Helper()
×
65
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMlxNicFwData", reflect.TypeOf((*MockMellanoxInterface)(nil).GetMlxNicFwData), pciAddress)
×
66
}
×
67

68
// MlxConfigFW mocks base method.
69
func (m *MockMellanoxInterface) MlxConfigFW(attributesToChange map[string]mlxutils.MlxNic) error {
×
70
        m.ctrl.T.Helper()
×
71
        ret := m.ctrl.Call(m, "MlxConfigFW", attributesToChange)
×
72
        ret0, _ := ret[0].(error)
×
73
        return ret0
×
74
}
×
75

76
// MlxConfigFW indicates an expected call of MlxConfigFW.
77
func (mr *MockMellanoxInterfaceMockRecorder) MlxConfigFW(attributesToChange interface{}) *gomock.Call {
×
78
        mr.mock.ctrl.T.Helper()
×
79
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MlxConfigFW", reflect.TypeOf((*MockMellanoxInterface)(nil).MlxConfigFW), attributesToChange)
×
80
}
×
81

82
// MlxResetFW mocks base method.
NEW
83
func (m *MockMellanoxInterface) MlxResetFW(pciAddresses []string) error {
×
NEW
84
        m.ctrl.T.Helper()
×
NEW
85
        ret := m.ctrl.Call(m, "MlxResetFW", pciAddresses)
×
NEW
86
        ret0, _ := ret[0].(error)
×
NEW
87
        return ret0
×
NEW
88
}
×
89

90
// MlxResetFW indicates an expected call of MlxResetFW.
NEW
91
func (mr *MockMellanoxInterfaceMockRecorder) MlxResetFW(pciAddresses interface{}) *gomock.Call {
×
NEW
92
        mr.mock.ctrl.T.Helper()
×
NEW
93
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MlxResetFW", reflect.TypeOf((*MockMellanoxInterface)(nil).MlxResetFW), pciAddresses)
×
NEW
94
}
×
95

96
// MstConfigReadData mocks base method.
97
func (m *MockMellanoxInterface) MstConfigReadData(arg0 string) (string, string, error) {
×
98
        m.ctrl.T.Helper()
×
99
        ret := m.ctrl.Call(m, "MstConfigReadData", arg0)
×
100
        ret0, _ := ret[0].(string)
×
101
        ret1, _ := ret[1].(string)
×
102
        ret2, _ := ret[2].(error)
×
103
        return ret0, ret1, ret2
×
104
}
×
105

106
// MstConfigReadData indicates an expected call of MstConfigReadData.
107
func (mr *MockMellanoxInterfaceMockRecorder) MstConfigReadData(arg0 interface{}) *gomock.Call {
×
108
        mr.mock.ctrl.T.Helper()
×
109
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MstConfigReadData", reflect.TypeOf((*MockMellanoxInterface)(nil).MstConfigReadData), arg0)
×
110
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc