/
httpclitest.go
50 lines (41 loc) · 1.34 KB
/
httpclitest.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: ghttp/ghttp.go
// Package ghttp is a generated GoMock package.
package ghttp
import (
http "net/http"
reflect "reflect"
gomock "go.uber.org/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
}
// Do mocks base method.
func (m *MockHttpClient) Do(rq *http.Request) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Do", rq)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Do indicates an expected call of Do.
func (mr *MockHttpClientMockRecorder) Do(rq interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHttpClient)(nil).Do), rq)
}