/
client_mock.go
62 lines (51 loc) · 1.8 KB
/
client_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/hostfile/client.go
// Package hostfile is a generated GoMock package.
package hostfile
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockHostfile is a mock of Hostfile interface.
type MockHostfile struct {
ctrl *gomock.Controller
recorder *MockHostfileMockRecorder
}
// MockHostfileMockRecorder is the mock recorder for MockHostfile.
type MockHostfileMockRecorder struct {
mock *MockHostfile
}
// NewMockHostfile creates a new mock instance.
func NewMockHostfile(ctrl *gomock.Controller) *MockHostfile {
mock := &MockHostfile{ctrl: ctrl}
mock.recorder = &MockHostfileMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockHostfile) EXPECT() *MockHostfileMockRecorder {
return m.recorder
}
// AddHost mocks base method.
func (m *MockHostfile) AddHost(ip, hostname string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddHost", ip, hostname)
ret0, _ := ret[0].(error)
return ret0
}
// AddHost indicates an expected call of AddHost.
func (mr *MockHostfileMockRecorder) AddHost(ip, hostname interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHost", reflect.TypeOf((*MockHostfile)(nil).AddHost), ip, hostname)
}
// RemoveHost mocks base method.
func (m *MockHostfile) RemoveHost(hostname string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveHost", hostname)
ret0, _ := ret[0].(error)
return ret0
}
// RemoveHost indicates an expected call of RemoveHost.
func (mr *MockHostfileMockRecorder) RemoveHost(hostname interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveHost", reflect.TypeOf((*MockHostfile)(nil).RemoveHost), hostname)
}