mock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

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

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetAccount

func (m *MockClient) GetAccount(account types0.AccAddress) (client.Account, error)

GetAccount mocks base method.

func (*MockClient) GetBalance

func (m *MockClient) GetBalance(account types0.AccAddress) (uint64, error)

GetBalance mocks base method.

func (*MockClient) GetBlockResult

func (m *MockClient) GetBlockResult(height int64) (*types1.ResultBlockResults, error)

GetBlockResult mocks base method.

func (*MockClient) GetResult

func (m *MockClient) GetResult(id uint64) (*types.Result, error)

GetResult mocks base method.

func (*MockClient) GetSignature

func (m *MockClient) GetSignature(id uint64) ([]byte, error)

GetSignature mocks base method.

func (*MockClient) GetTx

func (m *MockClient) GetTx(txHash string) (*types0.TxResponse, error)

GetTx mocks base method.

func (*MockClient) QueryRequestFailureReason

func (m *MockClient) QueryRequestFailureReason(id uint64) (string, error)

QueryRequestFailureReason mocks base method.

func (*MockClient) SendRequest

func (m *MockClient) SendRequest(msg *types.MsgRequestData, gasPrice float64, key keyring.Info) (*types0.TxResponse, error)

SendRequest mocks base method.

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetAccount

func (mr *MockClientMockRecorder) GetAccount(account any) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockClientMockRecorder) GetBalance

func (mr *MockClientMockRecorder) GetBalance(account any) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockClientMockRecorder) GetBlockResult

func (mr *MockClientMockRecorder) GetBlockResult(height any) *gomock.Call

GetBlockResult indicates an expected call of GetBlockResult.

func (*MockClientMockRecorder) GetResult

func (mr *MockClientMockRecorder) GetResult(id any) *gomock.Call

GetResult indicates an expected call of GetResult.

func (*MockClientMockRecorder) GetSignature

func (mr *MockClientMockRecorder) GetSignature(id any) *gomock.Call

GetSignature indicates an expected call of GetSignature.

func (*MockClientMockRecorder) GetTx

func (mr *MockClientMockRecorder) GetTx(txHash any) *gomock.Call

GetTx indicates an expected call of GetTx.

func (*MockClientMockRecorder) QueryRequestFailureReason

func (mr *MockClientMockRecorder) QueryRequestFailureReason(id any) *gomock.Call

QueryRequestFailureReason indicates an expected call of QueryRequestFailureReason.

func (*MockClientMockRecorder) SendRequest

func (mr *MockClientMockRecorder) SendRequest(msg, gasPrice, key any) *gomock.Call

SendRequest indicates an expected call of SendRequest.

Jump to

Keyboard shortcuts

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