mocking

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

type MockJsonResponse struct {
	mock.Mock
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL