Documentation ¶
Overview ¶
Package jsonrpcmocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) BatchCall(arg0 context.Context, arg1 *jsonrpc.RequestMethod, arg2 []jsonrpc.Params, ...) ([]*jsonrpc.Response, error)
- func (m *MockClient) Call(arg0 context.Context, arg1 *jsonrpc.RequestMethod, arg2 jsonrpc.Params, ...) (*jsonrpc.Response, error)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- type MockClientMockRecorder
- type MockHTTPClient
- type MockHTTPClientMockRecorder
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) BatchCall ¶
func (m *MockClient) BatchCall(arg0 context.Context, arg1 *jsonrpc.RequestMethod, arg2 []jsonrpc.Params, arg3 ...jsonrpc.Option) ([]*jsonrpc.Response, error)
BatchCall mocks base method.
func (*MockClient) Call ¶
func (m *MockClient) Call(arg0 context.Context, arg1 *jsonrpc.RequestMethod, arg2 jsonrpc.Params, arg3 ...jsonrpc.Option) (*jsonrpc.Response, error)
Call mocks base method.
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.
type MockHTTPClient ¶
type MockHTTPClient struct {
// contains filtered or unexported fields
}
MockHTTPClient is a mock of HTTPClient interface.
func NewMockHTTPClient ¶
func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient
NewMockHTTPClient creates a new mock instance.
func (*MockHTTPClient) EXPECT ¶
func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHTTPClientMockRecorder ¶
type MockHTTPClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.
Click to show internal directories.
Click to hide internal directories.