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 ¶
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.
Click to show internal directories.
Click to hide internal directories.