mocks

package
v1.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

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) ApplySnapshotChunk added in v0.38.0

func (_m *Client) ApplySnapshotChunk(ctx context.Context, req *v1.ApplySnapshotChunkRequest) (*v1.ApplySnapshotChunkResponse, error)

ApplySnapshotChunk provides a mock function with given fields: ctx, req

func (*Client) CheckTx added in v0.38.0

func (_m *Client) CheckTx(ctx context.Context, req *v1.CheckTxRequest) (*v1.CheckTxResponse, error)

CheckTx provides a mock function with given fields: ctx, req

func (*Client) CheckTxAsync

func (_m *Client) CheckTxAsync(ctx context.Context, req *v1.CheckTxRequest) (*abcicli.ReqRes, error)

CheckTxAsync provides a mock function with given fields: ctx, req

func (*Client) Commit added in v0.38.0

func (_m *Client) Commit(ctx context.Context, req *v1.CommitRequest) (*v1.CommitResponse, error)

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

func (*Client) Echo added in v0.38.0

func (_m *Client) Echo(ctx context.Context, echo string) (*v1.EchoResponse, error)

Echo provides a mock function with given fields: ctx, echo

func (*Client) Error

func (_m *Client) Error() error

Error provides a mock function with given fields:

func (*Client) ExtendVote added in v0.38.0

func (_m *Client) ExtendVote(ctx context.Context, req *v1.ExtendVoteRequest) (*v1.ExtendVoteResponse, error)

ExtendVote provides a mock function with given fields: ctx, req

func (*Client) FinalizeBlock added in v0.38.0

func (_m *Client) FinalizeBlock(ctx context.Context, req *v1.FinalizeBlockRequest) (*v1.FinalizeBlockResponse, error)

FinalizeBlock provides a mock function with given fields: ctx, req

func (*Client) Flush added in v0.38.0

func (_m *Client) Flush(ctx context.Context) error

Flush provides a mock function with given fields: ctx

func (*Client) Info added in v0.38.0

func (_m *Client) Info(ctx context.Context, req *v1.InfoRequest) (*v1.InfoResponse, error)

Info provides a mock function with given fields: ctx, req

func (*Client) InitChain added in v0.38.0

func (_m *Client) InitChain(ctx context.Context, req *v1.InitChainRequest) (*v1.InitChainResponse, error)

InitChain provides a mock function with given fields: ctx, req

func (*Client) IsRunning

func (_m *Client) IsRunning() bool

IsRunning provides a mock function with given fields:

func (*Client) ListSnapshots added in v0.38.0

func (_m *Client) ListSnapshots(ctx context.Context, req *v1.ListSnapshotsRequest) (*v1.ListSnapshotsResponse, error)

ListSnapshots provides a mock function with given fields: ctx, req

func (*Client) LoadSnapshotChunk added in v0.38.0

func (_m *Client) LoadSnapshotChunk(ctx context.Context, req *v1.LoadSnapshotChunkRequest) (*v1.LoadSnapshotChunkResponse, error)

LoadSnapshotChunk provides a mock function with given fields: ctx, req

func (*Client) OfferSnapshot added in v0.38.0

func (_m *Client) OfferSnapshot(ctx context.Context, req *v1.OfferSnapshotRequest) (*v1.OfferSnapshotResponse, error)

OfferSnapshot provides a mock function with given fields: ctx, req

func (*Client) OnReset

func (_m *Client) OnReset() error

OnReset provides a mock function with given fields:

func (*Client) OnStart

func (_m *Client) OnStart() error

OnStart provides a mock function with given fields:

func (*Client) OnStop

func (_m *Client) OnStop()

OnStop provides a mock function with given fields:

func (*Client) PrepareProposal added in v0.38.0

func (_m *Client) PrepareProposal(ctx context.Context, req *v1.PrepareProposalRequest) (*v1.PrepareProposalResponse, error)

PrepareProposal provides a mock function with given fields: ctx, req

func (*Client) ProcessProposal added in v0.38.0

func (_m *Client) ProcessProposal(ctx context.Context, req *v1.ProcessProposalRequest) (*v1.ProcessProposalResponse, error)

ProcessProposal provides a mock function with given fields: ctx, req

func (*Client) Query added in v0.38.0

func (_m *Client) Query(ctx context.Context, req *v1.QueryRequest) (*v1.QueryResponse, error)

Query provides a mock function with given fields: ctx, req

func (*Client) Quit

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

Quit provides a mock function with given fields:

func (*Client) Reset

func (_m *Client) Reset() error

Reset provides a mock function with given fields:

func (*Client) SetLogger

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

SetLogger provides a mock function with given fields: l

func (*Client) SetResponseCallback

func (_m *Client) SetResponseCallback(cb abcicli.Callback)

SetResponseCallback provides a mock function with given fields: cb

func (*Client) Start

func (_m *Client) Start() error

Start provides a mock function with given fields:

func (*Client) Stop

func (_m *Client) Stop() error

Stop provides a mock function with given fields:

func (*Client) String

func (_m *Client) String() string

String provides a mock function with given fields:

func (*Client) VerifyVoteExtension added in v0.38.0

func (_m *Client) VerifyVoteExtension(ctx context.Context, req *v1.VerifyVoteExtensionRequest) (*v1.VerifyVoteExtensionResponse, error)

VerifyVoteExtension provides a mock function with given fields: ctx, req

Jump to

Keyboard shortcuts

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