github.com/klaytn/klaytn@v1.12.1/node/sc/kas/mocks/client_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/kas (interfaces: HTTPClient) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 http "net/http" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 ) 13 14 // MockHTTPClient is a mock of HTTPClient interface 15 type MockHTTPClient struct { 16 ctrl *gomock.Controller 17 recorder *MockHTTPClientMockRecorder 18 } 19 20 // MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient 21 type MockHTTPClientMockRecorder struct { 22 mock *MockHTTPClient 23 } 24 25 // NewMockHTTPClient creates a new mock instance 26 func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient { 27 mock := &MockHTTPClient{ctrl: ctrl} 28 mock.recorder = &MockHTTPClientMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder { 34 return m.recorder 35 } 36 37 // Do mocks base method 38 func (m *MockHTTPClient) Do(arg0 *http.Request) (*http.Response, error) { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "Do", arg0) 41 ret0, _ := ret[0].(*http.Response) 42 ret1, _ := ret[1].(error) 43 return ret0, ret1 44 } 45 46 // Do indicates an expected call of Do 47 func (mr *MockHTTPClientMockRecorder) Do(arg0 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHTTPClient)(nil).Do), arg0) 50 }