Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Get(ctx context.Context, req httpclnt.Request) (httpclnt.Response, error)
- func (m *MockClient) Post(ctx context.Context, req httpclnt.Request) (httpclnt.Response, error)
- func (m *MockClient) Put(ctx context.Context, req httpclnt.Request) (httpclnt.Response, error)
- type MockClientMockRecorder
- type MockRequest
- type MockRequestMockRecorder
- type MockResponse
- type MockResponseMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Get ¶
func (mr *MockClientMockRecorder) Get(ctx, req interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockClientMockRecorder) Post ¶
func (mr *MockClientMockRecorder) Post(ctx, req interface{}) *gomock.Call
Post indicates an expected call of Post.
func (*MockClientMockRecorder) Put ¶
func (mr *MockClientMockRecorder) Put(ctx, req interface{}) *gomock.Call
Put indicates an expected call of Put.
type MockRequest ¶
type MockRequest struct {
// contains filtered or unexported fields
}
MockRequest is a mock of Request interface.
func NewMockRequest ¶
func NewMockRequest(ctrl *gomock.Controller) *MockRequest
NewMockRequest creates a new mock instance.
func (*MockRequest) AddHeader ¶
func (m *MockRequest) AddHeader(header, value string)
AddHeader mocks base method.
func (*MockRequest) EXPECT ¶
func (m *MockRequest) EXPECT() *MockRequestMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRequest) GetHeaders ¶
func (m *MockRequest) GetHeaders() map[string]string
GetHeaders mocks base method.
func (*MockRequest) GetPayload ¶
func (m *MockRequest) GetPayload() ([]byte, error)
GetPayload mocks base method.
type MockRequestMockRecorder ¶
type MockRequestMockRecorder struct {
// contains filtered or unexported fields
}
MockRequestMockRecorder is the mock recorder for MockRequest.
func (*MockRequestMockRecorder) AddHeader ¶
func (mr *MockRequestMockRecorder) AddHeader(header, value interface{}) *gomock.Call
AddHeader indicates an expected call of AddHeader.
func (*MockRequestMockRecorder) GetHeaders ¶
func (mr *MockRequestMockRecorder) GetHeaders() *gomock.Call
GetHeaders indicates an expected call of GetHeaders.
func (*MockRequestMockRecorder) GetPayload ¶
func (mr *MockRequestMockRecorder) GetPayload() *gomock.Call
GetPayload indicates an expected call of GetPayload.
func (*MockRequestMockRecorder) GetURL ¶
func (mr *MockRequestMockRecorder) GetURL() *gomock.Call
GetURL indicates an expected call of GetURL.
type MockResponse ¶
type MockResponse struct {
// contains filtered or unexported fields
}
MockResponse is a mock of Response interface.
func NewMockResponse ¶
func NewMockResponse(ctrl *gomock.Controller) *MockResponse
NewMockResponse creates a new mock instance.
func (*MockResponse) EXPECT ¶
func (m *MockResponse) EXPECT() *MockResponseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResponse) GetStatusCode ¶
func (m *MockResponse) GetStatusCode() int
GetStatusCode mocks base method.
type MockResponseMockRecorder ¶
type MockResponseMockRecorder struct {
// contains filtered or unexported fields
}
MockResponseMockRecorder is the mock recorder for MockResponse.
func (*MockResponseMockRecorder) GetBody ¶
func (mr *MockResponseMockRecorder) GetBody() *gomock.Call
GetBody indicates an expected call of GetBody.
func (*MockResponseMockRecorder) GetStatusCode ¶
func (mr *MockResponseMockRecorder) GetStatusCode() *gomock.Call
GetStatusCode indicates an expected call of GetStatusCode.