Documentation ¶
Index ¶
- type MockClient
- func (c *MockClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (c *MockClient) Close()
- func (c *MockClient) Expect(msg *jsonrpcMessage, jsonData []byte) *MockClient
- func (c *MockClient) GetRPCJsonMessage(method string, args ...interface{}) (*jsonrpcMessage, error)
- func (c *MockClient) LoadMockingTestFromFile(t *testing.T, method string, paramsIn ...interface{}) *MockClient
- func (c *MockClient) LoadMockingTestFromFilePatched(t *testing.T, method string, actualMethod string, args ...interface{}) *MockClient
- type MockJsonResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { types.GenericRPCClient // contains filtered or unexported fields }
func DialContext ¶
func DialContext(ctx context.Context, rawurl string) (*MockClient, error)
func (*MockClient) CallContext ¶
func (c *MockClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
func (*MockClient) Close ¶
func (c *MockClient) Close()
func (*MockClient) Expect ¶
func (c *MockClient) Expect(msg *jsonrpcMessage, jsonData []byte) *MockClient
func (*MockClient) GetRPCJsonMessage ¶
func (c *MockClient) GetRPCJsonMessage(method string, args ...interface{}) (*jsonrpcMessage, error)
func (*MockClient) LoadMockingTestFromFile ¶
func (c *MockClient) LoadMockingTestFromFile(t *testing.T, method string, paramsIn ...interface{}) *MockClient
func (*MockClient) LoadMockingTestFromFilePatched ¶
func (c *MockClient) LoadMockingTestFromFilePatched(t *testing.T, method string, actualMethod string, args ...interface{}) *MockClient
type MockJsonResponse ¶
Click to show internal directories.
Click to hide internal directories.