-
Notifications
You must be signed in to change notification settings - Fork 0
/
http_mock.go
145 lines (122 loc) · 6.03 KB
/
http_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Code generated by MockGen. DO NOT EDIT.
// Source: ./http.go
package cloud
import (
context "context"
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockhttpClient is a mock of httpClient interface.
type MockhttpClient struct {
ctrl *gomock.Controller
recorder *MockhttpClientMockRecorder
}
// MockhttpClientMockRecorder is the mock recorder for MockhttpClient.
type MockhttpClientMockRecorder struct {
mock *MockhttpClient
}
// NewMockhttpClient creates a new mock instance.
func NewMockhttpClient(ctrl *gomock.Controller) *MockhttpClient {
mock := &MockhttpClient{ctrl: ctrl}
mock.recorder = &MockhttpClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockhttpClient) EXPECT() *MockhttpClientMockRecorder {
return m.recorder
}
// getClusterID mocks base method.
func (m *MockhttpClient) getClusterID() ID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getClusterID")
ret0, _ := ret[0].(ID)
return ret0
}
// getClusterID indicates an expected call of getClusterID.
func (mr *MockhttpClientMockRecorder) getClusterID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getClusterID", reflect.TypeOf((*MockhttpClient)(nil).getClusterID))
}
// sendDeleteRequest mocks base method.
func (m *MockhttpClient) sendDeleteRequest(ctx context.Context, path, query string, payloadDecodeFunc payloadDecodeFunc, headers http.Header) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendDeleteRequest", ctx, path, query, payloadDecodeFunc, headers)
ret0, _ := ret[0].(error)
return ret0
}
// sendDeleteRequest indicates an expected call of sendDeleteRequest.
func (mr *MockhttpClientMockRecorder) sendDeleteRequest(ctx, path, query, payloadDecodeFunc, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendDeleteRequest", reflect.TypeOf((*MockhttpClient)(nil).sendDeleteRequest), ctx, path, query, payloadDecodeFunc, headers)
}
// sendGetRequest mocks base method.
func (m *MockhttpClient) sendGetRequest(ctx context.Context, path, query string, payloadDecodeFunc payloadDecodeFunc, headers http.Header) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendGetRequest", ctx, path, query, payloadDecodeFunc, headers)
ret0, _ := ret[0].(error)
return ret0
}
// sendGetRequest indicates an expected call of sendGetRequest.
func (mr *MockhttpClientMockRecorder) sendGetRequest(ctx, path, query, payloadDecodeFunc, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendGetRequest", reflect.TypeOf((*MockhttpClient)(nil).sendGetRequest), ctx, path, query, payloadDecodeFunc, headers)
}
// sendPatchRequest mocks base method.
func (m *MockhttpClient) sendPatchRequest(ctx context.Context, path, query string, body interface{}, payloadDecodeFunc payloadDecodeFunc, headers http.Header) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendPatchRequest", ctx, path, query, body, payloadDecodeFunc, headers)
ret0, _ := ret[0].(error)
return ret0
}
// sendPatchRequest indicates an expected call of sendPatchRequest.
func (mr *MockhttpClientMockRecorder) sendPatchRequest(ctx, path, query, body, payloadDecodeFunc, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendPatchRequest", reflect.TypeOf((*MockhttpClient)(nil).sendPatchRequest), ctx, path, query, body, payloadDecodeFunc, headers)
}
// sendPostRequest mocks base method.
func (m *MockhttpClient) sendPostRequest(ctx context.Context, path, query string, body interface{}, payloadDecodeFunc payloadDecodeFunc, headers http.Header) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendPostRequest", ctx, path, query, body, payloadDecodeFunc, headers)
ret0, _ := ret[0].(error)
return ret0
}
// sendPostRequest indicates an expected call of sendPostRequest.
func (mr *MockhttpClientMockRecorder) sendPostRequest(ctx, path, query, body, payloadDecodeFunc, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendPostRequest", reflect.TypeOf((*MockhttpClient)(nil).sendPostRequest), ctx, path, query, body, payloadDecodeFunc, headers)
}
// sendPutRequest mocks base method.
func (m *MockhttpClient) sendPutRequest(ctx context.Context, path, query string, body interface{}, payloadDecodeFunc payloadDecodeFunc, headers http.Header) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendPutRequest", ctx, path, query, body, payloadDecodeFunc, headers)
ret0, _ := ret[0].(error)
return ret0
}
// sendPutRequest indicates an expected call of sendPutRequest.
func (mr *MockhttpClientMockRecorder) sendPutRequest(ctx, path, query, body, payloadDecodeFunc, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendPutRequest", reflect.TypeOf((*MockhttpClient)(nil).sendPutRequest), ctx, path, query, body, payloadDecodeFunc, headers)
}
// sendRequest mocks base method.
func (m *MockhttpClient) sendRequest(req *http.Request, payloadDecodeFunc payloadDecodeFunc, series *TraceSeries) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "sendRequest", req, payloadDecodeFunc, series)
ret0, _ := ret[0].(error)
return ret0
}
// sendRequest indicates an expected call of sendRequest.
func (mr *MockhttpClientMockRecorder) sendRequest(req, payloadDecodeFunc, series interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "sendRequest", reflect.TypeOf((*MockhttpClient)(nil).sendRequest), req, payloadDecodeFunc, series)
}
// setClusterID mocks base method.
func (m *MockhttpClient) setClusterID(id ID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "setClusterID", id)
}
// setClusterID indicates an expected call of setClusterID.
func (mr *MockhttpClientMockRecorder) setClusterID(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "setClusterID", reflect.TypeOf((*MockhttpClient)(nil).setClusterID), id)
}