-
Notifications
You must be signed in to change notification settings - Fork 40
/
mock_client.go
78 lines (65 loc) · 2.52 KB
/
mock_client.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
// Code generated by MockGen. DO NOT EDIT.
// Source: /Users/sradhakrishna/DI/projects/github/twilio-go/client/base_client.go
// Package mock_client is a generated GoMock package.
package client
import (
http "net/http"
url "net/url"
reflect "reflect"
time "time"
gomock "github.com/golang/mock/gomock"
)
// MockBaseClient is a mock of BaseClient interface.
type MockBaseClient struct {
ctrl *gomock.Controller
recorder *MockBaseClientMockRecorder
}
// MockBaseClientMockRecorder is the mock recorder for MockBaseClient.
type MockBaseClientMockRecorder struct {
mock *MockBaseClient
}
// NewMockBaseClient creates a new mock instance.
func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient {
mock := &MockBaseClient{ctrl: ctrl}
mock.recorder = &MockBaseClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder {
return m.recorder
}
// AccountSid mocks base method.
func (m *MockBaseClient) AccountSid() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AccountSid")
ret0, _ := ret[0].(string)
return ret0
}
// AccountSid indicates an expected call of AccountSid.
func (mr *MockBaseClientMockRecorder) AccountSid() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccountSid", reflect.TypeOf((*MockBaseClient)(nil).AccountSid))
}
// SendRequest mocks base method.
func (m *MockBaseClient) SendRequest(method, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendRequest", method, rawURL, data, headers)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SendRequest indicates an expected call of SendRequest.
func (mr *MockBaseClientMockRecorder) SendRequest(method, rawURL, data, headers interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockBaseClient)(nil).SendRequest), method, rawURL, data, headers)
}
// SetTimeout mocks base method.
func (m *MockBaseClient) SetTimeout(timeout time.Duration) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTimeout", timeout)
}
// SetTimeout indicates an expected call of SetTimeout.
func (mr *MockBaseClientMockRecorder) SetTimeout(timeout interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTimeout", reflect.TypeOf((*MockBaseClient)(nil).SetTimeout), timeout)
}