...
1
2
3
4
5 package mocks
6
7 import (
8 context "context"
9 reflect "reflect"
10
11 systemd "edge-infra.dev/pkg/sds/lib/dbus/systemd"
12 gomock "github.com/golang/mock/gomock"
13 )
14
15
16 type MockRestarter struct {
17 ctrl *gomock.Controller
18 recorder *MockRestarterMockRecorder
19 }
20
21
22 type MockRestarterMockRecorder struct {
23 mock *MockRestarter
24 }
25
26
27 func NewMockRestarter(ctrl *gomock.Controller) *MockRestarter {
28 mock := &MockRestarter{ctrl: ctrl}
29 mock.recorder = &MockRestarterMockRecorder{mock}
30 return mock
31 }
32
33
34 func (m *MockRestarter) EXPECT() *MockRestarterMockRecorder {
35 return m.recorder
36 }
37
38
39 func (m *MockRestarter) Restart(arg0 context.Context, arg1 string, arg2 systemd.Mode, arg3 bool) error {
40 m.ctrl.T.Helper()
41 ret := m.ctrl.Call(m, "Restart", arg0, arg1, arg2, arg3)
42 ret0, _ := ret[0].(error)
43 return ret0
44 }
45
46
47 func (mr *MockRestarterMockRecorder) Restart(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
48 mr.mock.ctrl.T.Helper()
49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Restart", reflect.TypeOf((*MockRestarter)(nil).Restart), arg0, arg1, arg2, arg3)
50 }
51
View as plain text