Source File
mockhttpclient.go
Belonging Package
go.pact.im/x/httpclient/mockhttpclient
// Code generated by MockGen. DO NOT EDIT.
// Source: go.pact.im/x/httpclient (interfaces: Client)
//
// Generated by this command:
//
// mockgen -package=mockhttpclient -destination=mockhttpclient.go -write_package_comment=false go.pact.im/x/httpclient Client
//
package mockhttpclient
import (
http
reflect
gomock
)
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
isgomock struct{}
}
// MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance.
func ( *gomock.Controller) *MockClient {
:= &MockClient{ctrl: }
.recorder = &MockClientMockRecorder{}
return
}
// EXPECT returns an object that allows the caller to indicate expected use.
func ( *MockClient) () *MockClientMockRecorder {
return .recorder
}
// Do mocks base method.
func ( *MockClient) ( *http.Request) (*http.Response, error) {
.ctrl.T.Helper()
:= .ctrl.Call(, "Do", )
, := [0].(*http.Response)
, := [1].(error)
return ,
}
// Do indicates an expected call of Do.
func ( *MockClientMockRecorder) ( any) *gomock.Call {
.mock.ctrl.T.Helper()
return .mock.ctrl.RecordCallWithMethodType(.mock, "Do", reflect.TypeOf((*MockClient)(nil).Do), )
}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)