github.com/twilio/twilio-go@v1.20.1/client/mock_client.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: /Users/sradhakrishna/DI/projects/github/twilio-go/client/base_client.go 3 4 // Package mock_client is a generated GoMock package. 5 package client 6 7 import ( 8 http "net/http" 9 url "net/url" 10 reflect "reflect" 11 time "time" 12 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockBaseClient is a mock of BaseClient interface. 17 type MockBaseClient struct { 18 ctrl *gomock.Controller 19 recorder *MockBaseClientMockRecorder 20 } 21 22 // MockBaseClientMockRecorder is the mock recorder for MockBaseClient. 23 type MockBaseClientMockRecorder struct { 24 mock *MockBaseClient 25 } 26 27 // NewMockBaseClient creates a new mock instance. 28 func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient { 29 mock := &MockBaseClient{ctrl: ctrl} 30 mock.recorder = &MockBaseClientMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder { 36 return m.recorder 37 } 38 39 // AccountSid mocks base method. 40 func (m *MockBaseClient) AccountSid() string { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "AccountSid") 43 ret0, _ := ret[0].(string) 44 return ret0 45 } 46 47 // AccountSid indicates an expected call of AccountSid. 48 func (mr *MockBaseClientMockRecorder) AccountSid() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AccountSid", reflect.TypeOf((*MockBaseClient)(nil).AccountSid)) 51 } 52 53 // SendRequest mocks base method. 54 func (m *MockBaseClient) SendRequest(method, rawURL string, data url.Values, headers map[string]interface{}) (*http.Response, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "SendRequest", method, rawURL, data, headers) 57 ret0, _ := ret[0].(*http.Response) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // SendRequest indicates an expected call of SendRequest. 63 func (mr *MockBaseClientMockRecorder) SendRequest(method, rawURL, data, headers interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockBaseClient)(nil).SendRequest), method, rawURL, data, headers) 66 } 67 68 // SetTimeout mocks base method. 69 func (m *MockBaseClient) SetTimeout(timeout time.Duration) { 70 m.ctrl.T.Helper() 71 m.ctrl.Call(m, "SetTimeout", timeout) 72 } 73 74 // SetTimeout indicates an expected call of SetTimeout. 75 func (mr *MockBaseClientMockRecorder) SetTimeout(timeout interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTimeout", reflect.TypeOf((*MockBaseClient)(nil).SetTimeout), timeout) 78 }