-
Notifications
You must be signed in to change notification settings - Fork 10
/
gomock_hostresponse.go
85 lines (71 loc) · 2.7 KB
/
gomock_hostresponse.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/Scalingo/etcd-discovery/service (interfaces: HostResponse)
// Package servicemock is a generated GoMock package.
package servicemock
import (
service "github.com/Scalingo/etcd-discovery/service"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockHostResponse is a mock of HostResponse interface
type MockHostResponse struct {
ctrl *gomock.Controller
recorder *MockHostResponseMockRecorder
}
// MockHostResponseMockRecorder is the mock recorder for MockHostResponse
type MockHostResponseMockRecorder struct {
mock *MockHostResponse
}
// NewMockHostResponse creates a new mock instance
func NewMockHostResponse(ctrl *gomock.Controller) *MockHostResponse {
mock := &MockHostResponse{ctrl: ctrl}
mock.recorder = &MockHostResponseMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockHostResponse) EXPECT() *MockHostResponseMockRecorder {
return m.recorder
}
// Err mocks base method
func (m *MockHostResponse) Err() error {
ret := m.ctrl.Call(m, "Err")
ret0, _ := ret[0].(error)
return ret0
}
// Err indicates an expected call of Err
func (mr *MockHostResponseMockRecorder) Err() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockHostResponse)(nil).Err))
}
// Host mocks base method
func (m *MockHostResponse) Host() (*service.Host, error) {
ret := m.ctrl.Call(m, "Host")
ret0, _ := ret[0].(*service.Host)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Host indicates an expected call of Host
func (mr *MockHostResponseMockRecorder) Host() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Host", reflect.TypeOf((*MockHostResponse)(nil).Host))
}
// PrivateURL mocks base method
func (m *MockHostResponse) PrivateURL(arg0, arg1 string) (string, error) {
ret := m.ctrl.Call(m, "PrivateURL", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrivateURL indicates an expected call of PrivateURL
func (mr *MockHostResponseMockRecorder) PrivateURL(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateURL", reflect.TypeOf((*MockHostResponse)(nil).PrivateURL), arg0, arg1)
}
// URL mocks base method
func (m *MockHostResponse) URL(arg0, arg1 string) (string, error) {
ret := m.ctrl.Call(m, "URL", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// URL indicates an expected call of URL
func (mr *MockHostResponseMockRecorder) URL(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "URL", reflect.TypeOf((*MockHostResponse)(nil).URL), arg0, arg1)
}