testutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsonrpctestutils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasID

func HasID(id interface{}) gomock.Matcher

func HasVersion

func HasVersion(v string) gomock.Matcher

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) Call

func (m *MockClient) Call(ctx context.Context, req *jsonrpc.Request, res interface{}) 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.

func (*MockClientMockRecorder) Call

func (mr *MockClientMockRecorder) Call(ctx, req, res interface{}) *gomock.Call

Call indicates an expected call of Call.

Jump to

Keyboard shortcuts

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