-
Notifications
You must be signed in to change notification settings - Fork 313
/
mock_httpclient.go
50 lines (41 loc) · 1.44 KB
/
mock_httpclient.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/rudderlabs/rudder-server/utils/sysUtils (interfaces: HTTPClientI)
// Package mock_sysUtils is a generated GoMock package.
package mock_sysUtils
import (
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockHTTPClientI is a mock of HTTPClientI interface.
type MockHTTPClientI struct {
ctrl *gomock.Controller
recorder *MockHTTPClientIMockRecorder
}
// MockHTTPClientIMockRecorder is the mock recorder for MockHTTPClientI.
type MockHTTPClientIMockRecorder struct {
mock *MockHTTPClientI
}
// NewMockHTTPClientI creates a new mock instance.
func NewMockHTTPClientI(ctrl *gomock.Controller) *MockHTTPClientI {
mock := &MockHTTPClientI{ctrl: ctrl}
mock.recorder = &MockHTTPClientIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockHTTPClientI) EXPECT() *MockHTTPClientIMockRecorder {
return m.recorder
}
// Do mocks base method.
func (m *MockHTTPClientI) Do(arg0 *http.Request) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Do", arg0)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Do indicates an expected call of Do.
func (mr *MockHTTPClientIMockRecorder) Do(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHTTPClientI)(nil).Do), arg0)
}