mocks

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Application) ApplySnapshotChunk

ApplySnapshotChunk provides a mock function with given fields: _a0, _a1

func (*Application) CheckTx

CheckTx provides a mock function with given fields: _a0, _a1

func (*Application) Commit

Commit provides a mock function with given fields: _a0, _a1

func (*Application) ExtendVote added in v0.11.2

ExtendVote provides a mock function with given fields: _a0, _a1

func (*Application) FinalizeBlock added in v0.11.2

FinalizeBlock provides a mock function with given fields: _a0, _a1

func (*Application) Info

Info provides a mock function with given fields: _a0, _a1

func (*Application) InitChain

InitChain provides a mock function with given fields: _a0, _a1

func (*Application) ListSnapshots

ListSnapshots provides a mock function with given fields: _a0, _a1

func (*Application) LoadSnapshotChunk

LoadSnapshotChunk provides a mock function with given fields: _a0, _a1

func (*Application) OfferSnapshot

OfferSnapshot provides a mock function with given fields: _a0, _a1

func (*Application) PrepareProposal

PrepareProposal provides a mock function with given fields: _a0, _a1

func (*Application) ProcessProposal

ProcessProposal provides a mock function with given fields: _a0, _a1

func (*Application) Query

Query provides a mock function with given fields: _a0, _a1

func (*Application) VerifyVoteExtension added in v0.11.2

VerifyVoteExtension provides a mock function with given fields: _a0, _a1

type Client added in v0.11.19

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v0.11.19

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) ABCIInfo added in v0.11.19

func (_m *Client) ABCIInfo(_a0 context.Context) (*coretypes.ResultABCIInfo, error)

ABCIInfo provides a mock function with given fields: _a0

func (*Client) ABCIQuery added in v0.11.19

func (_m *Client) ABCIQuery(ctx context.Context, path string, data bytes.HexBytes) (*coretypes.ResultABCIQuery, error)

ABCIQuery provides a mock function with given fields: ctx, path, data

func (*Client) ABCIQueryWithOptions added in v0.11.19

func (_m *Client) ABCIQueryWithOptions(ctx context.Context, path string, data bytes.HexBytes, opts client.ABCIQueryOptions) (*coretypes.ResultABCIQuery, error)

ABCIQueryWithOptions provides a mock function with given fields: ctx, path, data, opts

func (*Client) Block added in v0.11.19

func (_m *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)

Block provides a mock function with given fields: ctx, height

func (*Client) BlockByHash added in v0.11.19

func (_m *Client) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*Client) BlockResults added in v0.11.19

func (_m *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)

BlockResults provides a mock function with given fields: ctx, height

func (*Client) BlockSearch added in v0.11.19

func (_m *Client) BlockSearch(ctx context.Context, query string, page *int, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)

BlockSearch provides a mock function with given fields: ctx, query, page, perPage, orderBy

func (*Client) BlockchainInfo added in v0.11.19

func (_m *Client) BlockchainInfo(ctx context.Context, minHeight int64, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)

BlockchainInfo provides a mock function with given fields: ctx, minHeight, maxHeight

func (*Client) BroadcastEvidence added in v0.11.19

func (_m *Client) BroadcastEvidence(_a0 context.Context, _a1 types.Evidence) (*coretypes.ResultBroadcastEvidence, error)

BroadcastEvidence provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxAsync added in v0.11.19

func (_m *Client) BroadcastTxAsync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxAsync provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxCommit added in v0.11.19

func (_m *Client) BroadcastTxCommit(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTxCommit, error)

BroadcastTxCommit provides a mock function with given fields: _a0, _a1

func (*Client) BroadcastTxSync added in v0.11.19

func (_m *Client) BroadcastTxSync(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultBroadcastTx, error)

BroadcastTxSync provides a mock function with given fields: _a0, _a1

func (*Client) CheckTx added in v0.11.19

func (_m *Client) CheckTx(_a0 context.Context, _a1 types.Tx) (*coretypes.ResultCheckTx, error)

CheckTx provides a mock function with given fields: _a0, _a1

func (*Client) Commit added in v0.11.19

func (_m *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)

Commit provides a mock function with given fields: ctx, height

func (*Client) ConsensusParams added in v0.11.19

func (_m *Client) ConsensusParams(ctx context.Context, height *int64) (*coretypes.ResultConsensusParams, error)

ConsensusParams provides a mock function with given fields: ctx, height

func (*Client) ConsensusState added in v0.11.19

func (_m *Client) ConsensusState(_a0 context.Context) (*coretypes.ResultConsensusState, error)

ConsensusState provides a mock function with given fields: _a0

func (*Client) DumpConsensusState added in v0.11.19

func (_m *Client) DumpConsensusState(_a0 context.Context) (*coretypes.ResultDumpConsensusState, error)

DumpConsensusState provides a mock function with given fields: _a0

func (*Client) Genesis added in v0.11.19

func (_m *Client) Genesis(_a0 context.Context) (*coretypes.ResultGenesis, error)

Genesis provides a mock function with given fields: _a0

func (*Client) GenesisChunked added in v0.11.19

func (_m *Client) GenesisChunked(_a0 context.Context, _a1 uint) (*coretypes.ResultGenesisChunk, error)

GenesisChunked provides a mock function with given fields: _a0, _a1

func (*Client) Header added in v0.11.19

func (_m *Client) Header(ctx context.Context, height *int64) (*coretypes.ResultHeader, error)

Header provides a mock function with given fields: ctx, height

func (*Client) HeaderByHash added in v0.11.19

func (_m *Client) HeaderByHash(ctx context.Context, hash bytes.HexBytes) (*coretypes.ResultHeader, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*Client) Health added in v0.11.19

func (_m *Client) Health(_a0 context.Context) (*coretypes.ResultHealth, error)

Health provides a mock function with given fields: _a0

func (*Client) IsRunning added in v0.11.19

func (_m *Client) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*Client) NetInfo added in v0.11.19

func (_m *Client) NetInfo(_a0 context.Context) (*coretypes.ResultNetInfo, error)

NetInfo provides a mock function with given fields: _a0

func (*Client) NumUnconfirmedTxs added in v0.11.19

func (_m *Client) NumUnconfirmedTxs(_a0 context.Context) (*coretypes.ResultUnconfirmedTxs, error)

NumUnconfirmedTxs provides a mock function with given fields: _a0

func (*Client) OnReset added in v0.11.19

func (_m *Client) OnReset() error

OnReset provides a mock function with given fields:

func (*Client) OnStart added in v0.11.19

func (_m *Client) OnStart() error

OnStart provides a mock function with given fields:

func (*Client) OnStop added in v0.11.19

func (_m *Client) OnStop()

OnStop provides a mock function with given fields:

func (*Client) Quit added in v0.11.19

func (_m *Client) Quit() <-chan struct{}

Quit provides a mock function with given fields:

func (*Client) Reset added in v0.11.19

func (_m *Client) Reset() error

Reset provides a mock function with given fields:

func (*Client) SetLogger added in v0.11.19

func (_m *Client) SetLogger(_a0 log.Logger)

SetLogger provides a mock function with given fields: _a0

func (*Client) Start added in v0.11.19

func (_m *Client) Start() error

Start provides a mock function with given fields:

func (*Client) Status added in v0.11.19

func (_m *Client) Status(_a0 context.Context) (*coretypes.ResultStatus, error)

Status provides a mock function with given fields: _a0

func (*Client) Stop added in v0.11.19

func (_m *Client) Stop() error

Stop provides a mock function with given fields:

func (*Client) String added in v0.11.19

func (_m *Client) String() string

String provides a mock function with given fields:

func (*Client) Subscribe added in v0.11.19

func (_m *Client) Subscribe(ctx context.Context, subscriber string, query string, outCapacity ...int) (<-chan coretypes.ResultEvent, error)

Subscribe provides a mock function with given fields: ctx, subscriber, query, outCapacity

func (*Client) Tx added in v0.11.19

func (_m *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)

Tx provides a mock function with given fields: ctx, hash, prove

func (*Client) TxSearch added in v0.11.19

func (_m *Client) TxSearch(ctx context.Context, query string, prove bool, page *int, perPage *int, orderBy string) (*coretypes.ResultTxSearch, error)

TxSearch provides a mock function with given fields: ctx, query, prove, page, perPage, orderBy

func (*Client) UnconfirmedTxs added in v0.11.19

func (_m *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*coretypes.ResultUnconfirmedTxs, error)

UnconfirmedTxs provides a mock function with given fields: ctx, limit

func (*Client) Unsubscribe added in v0.11.19

func (_m *Client) Unsubscribe(ctx context.Context, subscriber string, query string) error

Unsubscribe provides a mock function with given fields: ctx, subscriber, query

func (*Client) UnsubscribeAll added in v0.11.19

func (_m *Client) UnsubscribeAll(ctx context.Context, subscriber string) error

UnsubscribeAll provides a mock function with given fields: ctx, subscriber

func (*Client) Validators added in v0.11.19

func (_m *Client) Validators(ctx context.Context, height *int64, page *int, perPage *int) (*coretypes.ResultValidators, error)

Validators provides a mock function with given fields: ctx, height, page, perPage

type DA added in v0.13.0

type DA struct {
	mock.Mock
}

DA is an autogenerated mock type for the DA type

func NewDA added in v0.13.0

func NewDA(t interface {
	mock.TestingT
	Cleanup(func())
}) *DA

NewDA creates a new instance of DA. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DA) Commit added in v0.13.0

func (_m *DA) Commit(ctx context.Context, blobs [][]byte, namespace []byte) ([][]byte, error)

Commit provides a mock function with given fields: ctx, blobs, namespace

func (*DA) Get added in v0.13.0

func (_m *DA) Get(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)

Get provides a mock function with given fields: ctx, ids, namespace

func (*DA) GetIDs added in v0.13.0

func (_m *DA) GetIDs(ctx context.Context, height uint64, namespace []byte) ([][]byte, error)

GetIDs provides a mock function with given fields: ctx, height, namespace

func (*DA) GetProofs added in v0.13.0

func (_m *DA) GetProofs(ctx context.Context, ids [][]byte, namespace []byte) ([][]byte, error)

GetProofs provides a mock function with given fields: ctx, ids, namespace

func (*DA) MaxBlobSize added in v0.13.0

func (_m *DA) MaxBlobSize(ctx context.Context) (uint64, error)

MaxBlobSize provides a mock function with given fields: ctx

func (*DA) Submit added in v0.13.0

func (_m *DA) Submit(ctx context.Context, blobs [][]byte, gasPrice float64, namespace []byte) ([][]byte, error)

Submit provides a mock function with given fields: ctx, blobs, gasPrice, namespace

func (*DA) Validate added in v0.13.0

func (_m *DA) Validate(ctx context.Context, ids [][]byte, proofs [][]byte, namespace []byte) ([]bool, error)

Validate provides a mock function with given fields: ctx, ids, proofs, namespace

type Store added in v0.13.0

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore added in v0.13.0

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Store) Close added in v0.13.0

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) GetBlock added in v0.13.0

func (_m *Store) GetBlock(ctx context.Context, height uint64) (*types.Block, error)

GetBlock provides a mock function with given fields: ctx, height

func (*Store) GetBlockByHash added in v0.13.0

func (_m *Store) GetBlockByHash(ctx context.Context, hash header.Hash) (*types.Block, error)

GetBlockByHash provides a mock function with given fields: ctx, hash

func (*Store) GetBlockResponses added in v0.13.0

func (_m *Store) GetBlockResponses(ctx context.Context, height uint64) (*abcitypes.ResponseFinalizeBlock, error)

GetBlockResponses provides a mock function with given fields: ctx, height

func (*Store) GetCommit added in v0.13.0

func (_m *Store) GetCommit(ctx context.Context, height uint64) (*types.Commit, error)

GetCommit provides a mock function with given fields: ctx, height

func (*Store) GetCommitByHash added in v0.13.0

func (_m *Store) GetCommitByHash(ctx context.Context, hash header.Hash) (*types.Commit, error)

GetCommitByHash provides a mock function with given fields: ctx, hash

func (*Store) GetExtendedCommit added in v0.13.3

func (_m *Store) GetExtendedCommit(ctx context.Context, height uint64) (*abcitypes.ExtendedCommitInfo, error)

GetExtendedCommit provides a mock function with given fields: ctx, height

func (*Store) GetMetadata added in v0.13.0

func (_m *Store) GetMetadata(ctx context.Context, key string) ([]byte, error)

GetMetadata provides a mock function with given fields: ctx, key

func (*Store) GetState added in v0.13.0

func (_m *Store) GetState(ctx context.Context) (types.State, error)

GetState provides a mock function with given fields: ctx

func (*Store) Height added in v0.13.0

func (_m *Store) Height() uint64

Height provides a mock function with given fields:

func (*Store) SaveBlock added in v0.13.0

func (_m *Store) SaveBlock(ctx context.Context, block *types.Block, commit *types.Commit) error

SaveBlock provides a mock function with given fields: ctx, block, commit

func (*Store) SaveBlockResponses added in v0.13.0

func (_m *Store) SaveBlockResponses(ctx context.Context, height uint64, responses *abcitypes.ResponseFinalizeBlock) error

SaveBlockResponses provides a mock function with given fields: ctx, height, responses

func (*Store) SaveExtendedCommit added in v0.13.3

func (_m *Store) SaveExtendedCommit(ctx context.Context, height uint64, commit *abcitypes.ExtendedCommitInfo) error

SaveExtendedCommit provides a mock function with given fields: ctx, height, commit

func (*Store) SetHeight added in v0.13.0

func (_m *Store) SetHeight(ctx context.Context, height uint64)

SetHeight provides a mock function with given fields: ctx, height

func (*Store) SetMetadata added in v0.13.0

func (_m *Store) SetMetadata(ctx context.Context, key string, value []byte) error

SetMetadata provides a mock function with given fields: ctx, key, value

func (*Store) UpdateState added in v0.13.0

func (_m *Store) UpdateState(ctx context.Context, state types.State) error

UpdateState provides a mock function with given fields: ctx, state

Jump to

Keyboard shortcuts

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