testutil

package
v28.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepeatMockArgs

func RepeatMockArgs(n int) (args []interface{})

RepeatMockArgs returns a slice with an N number of mock.Anything arguments. This function can be useful to define a number of generic consecutive arguments for mocked method calls.

Types

type TendermintClientMock

type TendermintClientMock struct {
	mocks.RPCClient
}

TendermintClientMock mocks Tendermint's RPC client.

func NewTendermintClientMock

func NewTendermintClientMock(t *testing.T) *TendermintClientMock

NewTendermintClientMock creates a new Tendermint RPC client mock.

func (*TendermintClientMock) OnBlock

func (m *TendermintClientMock) OnBlock() *mock.Call

OnBlock starts a generic call mock on the Block RPC method.

func (*TendermintClientMock) OnStatus

func (m *TendermintClientMock) OnStatus() *mock.Call

OnStatus starts a generic call mock on the Status RPC method.

func (*TendermintClientMock) OnTxSearch

func (m *TendermintClientMock) OnTxSearch() *mock.Call

OnTxSearch starts a generic call mock on the TxSearch RPC method.

Jump to

Keyboard shortcuts

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