Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecTestCLICmd ¶
func ExecTestCLICmd(clientCtx client.Context, cmd *cobra.Command, extraArgs []string) (testutil.BufferWriter, error)
ExecTestCLICmd builds the client context, mocks the output and executes the command.
Types ¶
type MockTendermintRPC ¶
type MockTendermintRPC struct {
rpcclientmock.Client
// contains filtered or unexported fields
}
func NewMockTendermintRPC ¶
func NewMockTendermintRPC(respQuery abci.ResponseQuery, client rpcclientmock.Client) MockTendermintRPC
NewMockTendermintRPC returns a mock TendermintRPC implementation. It is used for CLI testing.
func (MockTendermintRPC) ABCIQueryWithOptions ¶
func (m MockTendermintRPC) ABCIQueryWithOptions( _ context.Context, _ string, _ tmbytes.HexBytes, _ rpcclient.ABCIQueryOptions, ) (*coretypes.ResultABCIQuery, error)
func (MockTendermintRPC) BroadcastTxSync ¶
func (MockTendermintRPC) BroadcastTxSync(context.Context, tmtypes.Tx) (*coretypes.ResultBroadcastTx, error)
Click to show internal directories.
Click to hide internal directories.