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

k8snetworkplumbingwg / sriov-network-operator / 3751025296

pending completion
3751025296

Pull #365

github

GitHub
Merge 421284b55 into 788d76f7e
Pull Request #365: Implementation for new systemd configuration method

958 of 958 new or added lines in 18 files covered. (100.0%)

1971 of 8330 relevant lines covered (23.66%)

0.27 hits per line

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

0.0
/pkg/host/mock/mock_host.go
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: host.go
3

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

7
import (
8
        reflect "reflect"
9

10
        gomock "github.com/golang/mock/gomock"
11
)
12

13
// MockHostManagerInterface is a mock of HostManagerInterface interface.
14
type MockHostManagerInterface struct {
15
        ctrl     *gomock.Controller
16
        recorder *MockHostManagerInterfaceMockRecorder
17
}
18

19
// MockHostManagerInterfaceMockRecorder is the mock recorder for MockHostManagerInterface.
20
type MockHostManagerInterfaceMockRecorder struct {
21
        mock *MockHostManagerInterface
22
}
23

24
// NewMockHostManagerInterface creates a new mock instance.
25
func NewMockHostManagerInterface(ctrl *gomock.Controller) *MockHostManagerInterface {
×
26
        mock := &MockHostManagerInterface{ctrl: ctrl}
×
27
        mock.recorder = &MockHostManagerInterfaceMockRecorder{mock}
×
28
        return mock
×
29
}
×
30

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

36
// LoadKernelModule mocks base method.
37
func (m *MockHostManagerInterface) LoadKernelModule(name string, args ...string) error {
×
38
        m.ctrl.T.Helper()
×
39
        varargs := []interface{}{name}
×
40
        for _, a := range args {
×
41
                varargs = append(varargs, a)
×
42
        }
×
43
        ret := m.ctrl.Call(m, "LoadKernelModule", varargs...)
×
44
        ret0, _ := ret[0].(error)
×
45
        return ret0
×
46
}
47

48
// LoadKernelModule indicates an expected call of LoadKernelModule.
49
func (mr *MockHostManagerInterfaceMockRecorder) LoadKernelModule(name interface{}, args ...interface{}) *gomock.Call {
×
50
        mr.mock.ctrl.T.Helper()
×
51
        varargs := append([]interface{}{name}, args...)
×
52
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadKernelModule", reflect.TypeOf((*MockHostManagerInterface)(nil).LoadKernelModule), varargs...)
×
53
}
×
54

55
// TryEnableRdma mocks base method.
56
func (m *MockHostManagerInterface) TryEnableRdma() (bool, error) {
×
57
        m.ctrl.T.Helper()
×
58
        ret := m.ctrl.Call(m, "TryEnableRdma")
×
59
        ret0, _ := ret[0].(bool)
×
60
        ret1, _ := ret[1].(error)
×
61
        return ret0, ret1
×
62
}
×
63

64
// TryEnableRdma indicates an expected call of TryEnableRdma.
65
func (mr *MockHostManagerInterfaceMockRecorder) TryEnableRdma() *gomock.Call {
×
66
        mr.mock.ctrl.T.Helper()
×
67
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryEnableRdma", reflect.TypeOf((*MockHostManagerInterface)(nil).TryEnableRdma))
×
68
}
×
69

70
// TryEnableTun mocks base method.
71
func (m *MockHostManagerInterface) TryEnableTun() {
×
72
        m.ctrl.T.Helper()
×
73
        m.ctrl.Call(m, "TryEnableTun")
×
74
}
×
75

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

82
// TryEnableVhostNet mocks base method.
83
func (m *MockHostManagerInterface) TryEnableVhostNet() {
×
84
        m.ctrl.T.Helper()
×
85
        m.ctrl.Call(m, "TryEnableVhostNet")
×
86
}
×
87

88
// TryEnableVhostNet indicates an expected call of TryEnableVhostNet.
89
func (mr *MockHostManagerInterfaceMockRecorder) TryEnableVhostNet() *gomock.Call {
×
90
        mr.mock.ctrl.T.Helper()
×
91
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryEnableVhostNet", reflect.TypeOf((*MockHostManagerInterface)(nil).TryEnableVhostNet))
×
92
}
×
93

94
// enableRDMA mocks base method.
95
func (m *MockHostManagerInterface) enableRDMA(arg0, arg1, arg2 string) (bool, error) {
×
96
        m.ctrl.T.Helper()
×
97
        ret := m.ctrl.Call(m, "enableRDMA", arg0, arg1, arg2)
×
98
        ret0, _ := ret[0].(bool)
×
99
        ret1, _ := ret[1].(error)
×
100
        return ret0, ret1
×
101
}
×
102

103
// enableRDMA indicates an expected call of enableRDMA.
104
func (mr *MockHostManagerInterfaceMockRecorder) enableRDMA(arg0, arg1, arg2 interface{}) *gomock.Call {
×
105
        mr.mock.ctrl.T.Helper()
×
106
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "enableRDMA", reflect.TypeOf((*MockHostManagerInterface)(nil).enableRDMA), arg0, arg1, arg2)
×
107
}
×
108

109
// enableRDMAOnRHELMachine mocks base method.
110
func (m *MockHostManagerInterface) enableRDMAOnRHELMachine() (bool, error) {
×
111
        m.ctrl.T.Helper()
×
112
        ret := m.ctrl.Call(m, "enableRDMAOnRHELMachine")
×
113
        ret0, _ := ret[0].(bool)
×
114
        ret1, _ := ret[1].(error)
×
115
        return ret0, ret1
×
116
}
×
117

118
// enableRDMAOnRHELMachine indicates an expected call of enableRDMAOnRHELMachine.
119
func (mr *MockHostManagerInterfaceMockRecorder) enableRDMAOnRHELMachine() *gomock.Call {
×
120
        mr.mock.ctrl.T.Helper()
×
121
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "enableRDMAOnRHELMachine", reflect.TypeOf((*MockHostManagerInterface)(nil).enableRDMAOnRHELMachine))
×
122
}
×
123

124
// getOSPrettyName mocks base method.
125
func (m *MockHostManagerInterface) getOSPrettyName() (string, error) {
×
126
        m.ctrl.T.Helper()
×
127
        ret := m.ctrl.Call(m, "getOSPrettyName")
×
128
        ret0, _ := ret[0].(string)
×
129
        ret1, _ := ret[1].(error)
×
130
        return ret0, ret1
×
131
}
×
132

133
// getOSPrettyName indicates an expected call of getOSPrettyName.
134
func (mr *MockHostManagerInterfaceMockRecorder) getOSPrettyName() *gomock.Call {
×
135
        mr.mock.ctrl.T.Helper()
×
136
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getOSPrettyName", reflect.TypeOf((*MockHostManagerInterface)(nil).getOSPrettyName))
×
137
}
×
138

139
// installRDMA mocks base method.
140
func (m *MockHostManagerInterface) installRDMA(arg0 string) error {
×
141
        m.ctrl.T.Helper()
×
142
        ret := m.ctrl.Call(m, "installRDMA", arg0)
×
143
        ret0, _ := ret[0].(error)
×
144
        return ret0
×
145
}
×
146

147
// installRDMA indicates an expected call of installRDMA.
148
func (mr *MockHostManagerInterfaceMockRecorder) installRDMA(arg0 interface{}) *gomock.Call {
×
149
        mr.mock.ctrl.T.Helper()
×
150
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "installRDMA", reflect.TypeOf((*MockHostManagerInterface)(nil).installRDMA), arg0)
×
151
}
×
152

153
// isCoreOS mocks base method.
154
func (m *MockHostManagerInterface) isCoreOS() (bool, error) {
×
155
        m.ctrl.T.Helper()
×
156
        ret := m.ctrl.Call(m, "isCoreOS")
×
157
        ret0, _ := ret[0].(bool)
×
158
        ret1, _ := ret[1].(error)
×
159
        return ret0, ret1
×
160
}
×
161

162
// isCoreOS indicates an expected call of isCoreOS.
163
func (mr *MockHostManagerInterfaceMockRecorder) isCoreOS() *gomock.Call {
×
164
        mr.mock.ctrl.T.Helper()
×
165
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "isCoreOS", reflect.TypeOf((*MockHostManagerInterface)(nil).isCoreOS))
×
166
}
×
167

168
// isRHELSystem mocks base method.
169
func (m *MockHostManagerInterface) isRHELSystem() (bool, error) {
×
170
        m.ctrl.T.Helper()
×
171
        ret := m.ctrl.Call(m, "isRHELSystem")
×
172
        ret0, _ := ret[0].(bool)
×
173
        ret1, _ := ret[1].(error)
×
174
        return ret0, ret1
×
175
}
×
176

177
// isRHELSystem indicates an expected call of isRHELSystem.
178
func (mr *MockHostManagerInterfaceMockRecorder) isRHELSystem() *gomock.Call {
×
179
        mr.mock.ctrl.T.Helper()
×
180
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "isRHELSystem", reflect.TypeOf((*MockHostManagerInterface)(nil).isRHELSystem))
×
181
}
×
182

183
// isUbuntuSystem mocks base method.
184
func (m *MockHostManagerInterface) isUbuntuSystem() (bool, error) {
×
185
        m.ctrl.T.Helper()
×
186
        ret := m.ctrl.Call(m, "isUbuntuSystem")
×
187
        ret0, _ := ret[0].(bool)
×
188
        ret1, _ := ret[1].(error)
×
189
        return ret0, ret1
×
190
}
×
191

192
// isUbuntuSystem indicates an expected call of isUbuntuSystem.
193
func (mr *MockHostManagerInterfaceMockRecorder) isUbuntuSystem() *gomock.Call {
×
194
        mr.mock.ctrl.T.Helper()
×
195
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "isUbuntuSystem", reflect.TypeOf((*MockHostManagerInterface)(nil).isUbuntuSystem))
×
196
}
×
197

198
// rdmaIsLoaded mocks base method.
199
func (m *MockHostManagerInterface) rdmaIsLoaded() (bool, error) {
×
200
        m.ctrl.T.Helper()
×
201
        ret := m.ctrl.Call(m, "rdmaIsLoaded")
×
202
        ret0, _ := ret[0].(bool)
×
203
        ret1, _ := ret[1].(error)
×
204
        return ret0, ret1
×
205
}
×
206

207
// rdmaIsLoaded indicates an expected call of rdmaIsLoaded.
208
func (mr *MockHostManagerInterfaceMockRecorder) rdmaIsLoaded() *gomock.Call {
×
209
        mr.mock.ctrl.T.Helper()
×
210
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "rdmaIsLoaded", reflect.TypeOf((*MockHostManagerInterface)(nil).rdmaIsLoaded))
×
211
}
×
212

213
// triggerUdevEvent mocks base method.
214
func (m *MockHostManagerInterface) triggerUdevEvent() error {
×
215
        m.ctrl.T.Helper()
×
216
        ret := m.ctrl.Call(m, "triggerUdevEvent")
×
217
        ret0, _ := ret[0].(error)
×
218
        return ret0
×
219
}
×
220

221
// triggerUdevEvent indicates an expected call of triggerUdevEvent.
222
func (mr *MockHostManagerInterfaceMockRecorder) triggerUdevEvent() *gomock.Call {
×
223
        mr.mock.ctrl.T.Helper()
×
224
        return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "triggerUdevEvent", reflect.TypeOf((*MockHostManagerInterface)(nil).triggerUdevEvent))
×
225
}
×
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