mocks

package
v0.34.22 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	mock.Mock
}

Application is an autogenerated mock type for the Application type

func NewApplication

func NewApplication(t mockConstructorTestingTNewApplication) *Application

NewApplication creates a new instance of Application. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Application) ApplySnapshotChunk

ApplySnapshotChunk provides a mock function with given fields: _a0

func (*Application) BeginBlock

BeginBlock provides a mock function with given fields: _a0

func (*Application) CheckTx

CheckTx provides a mock function with given fields: _a0

func (*Application) Commit

func (_m *Application) Commit() types.ResponseCommit

Commit provides a mock function with given fields:

func (*Application) DeliverTx

DeliverTx provides a mock function with given fields: _a0

func (*Application) EndBlock

EndBlock provides a mock function with given fields: _a0

func (*Application) Info

Info provides a mock function with given fields: _a0

func (*Application) InitChain

InitChain provides a mock function with given fields: _a0

func (*Application) ListSnapshots

ListSnapshots provides a mock function with given fields: _a0

func (*Application) LoadSnapshotChunk

LoadSnapshotChunk provides a mock function with given fields: _a0

func (*Application) OfferSnapshot

OfferSnapshot provides a mock function with given fields: _a0

func (*Application) PrepareProposal

PrepareProposal provides a mock function with given fields: _a0

func (*Application) ProcessProposal

ProcessProposal provides a mock function with given fields: _a0

func (*Application) Query

Query provides a mock function with given fields: _a0

type BaseMock

type BaseMock struct {
	*Application
	// contains filtered or unexported fields
}

BaseMock provides a wrapper around the generated Application mock and a BaseApplication. BaseMock first tries to use the mock's implementation of the method. If no functionality was provided for the mock by the user, BaseMock dispatches to the BaseApplication and uses its functionality. BaseMock allows users to provide mocked functionality for only the methods that matter for their test while avoiding a panic if the code calls Application methods that are not relevant to the test.

func NewBaseMock

func NewBaseMock() BaseMock

func (BaseMock) BeginBlock

func (BaseMock) CheckTx

Mempool Connection Validate a tx for the mempool

func (BaseMock) Commit

func (m BaseMock) Commit() types.ResponseCommit

Commit the state and return the application Merkle root hash

func (BaseMock) DeliverTx

func (BaseMock) EndBlock

func (BaseMock) Info

Info/Query Connection Return application info

func (BaseMock) InitChain

Consensus Connection Initialize blockchain w validators/other info from TendermintCore

func (BaseMock) ListSnapshots

State Sync Connection List available snapshots

func (BaseMock) LoadSnapshotChunk

func (BaseMock) OfferSnapshot

func (BaseMock) PrepareProposal

func (BaseMock) ProcessProposal

func (BaseMock) Query

Jump to

Keyboard shortcuts

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