mocks

package
v23.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetListGetterMock

type AssetListGetterMock struct {
	// contains filtered or unexported fields
}

func (*AssetListGetterMock) GetDenomPrecisions

func (tu *AssetListGetterMock) GetDenomPrecisions(ctx context.Context) (map[string]int, error)

GetDenomPrecisions implements domain.TokensUsecase.

type NodeStatusCheckerMock added in v23.0.9

type NodeStatusCheckerMock struct {
	// IsSyncing is the value to return when IsNodeSyncing is called.
	IsSyncing bool
	// IsNodeSyncingError is the error to return when IsNodeSyncing is called.
	IsNodeSyncingError error
	// IsNodeSyncingCalled is a flag indicating if IsNodeSyncing was called.
	IsNodeSyncingCalled bool
}

NodeStatusCheckerMock is a mock implementation of domain.NodeStatusChecker.

func (*NodeStatusCheckerMock) IsNodeSyncing added in v23.0.9

func (n *NodeStatusCheckerMock) IsNodeSyncing(ctx types.Context) (bool, error)

IsNodeSyncing implements domain.NodeStatusChecker.

type SQSIngesterMock added in v23.0.9

type SQSIngesterMock struct {
	// AllBlockDataError is the error to return when ProcessAllBlockData is called.
	AllBlockDataError error
	// ChangedBlockDataError is the error to return when ProcessChangedBlockData is called.
	ChangedBlockDataError error
	// IsProcessAllBlockDataCalled is a flag indicating if ProcessAllBlockData was called.
	IsProcessAllBlockDataCalled bool
	// IsProcessAllChangedDataCalled is a flag indicating if ProcessChangedBlockData was called.
	IsProcessAllChangedDataCalled bool
	// LastChangedPoolsObserved is the last changed pools observed by the mock when
	// ProcessChangedBlockData is called.
	LastChangedPoolsObserved domain.BlockPools
	// If this is non-empty, ProcessAllBlockData(...) will panic with this message.
	ProcessAllBlockDataPanicMsg string
}

SQSIngesterMock is a mock implementation of domain.Ingester.

func (*SQSIngesterMock) ProcessAllBlockData added in v23.0.9

func (s *SQSIngesterMock) ProcessAllBlockData(ctx types.Context) error

ProcessAllBlockData implements domain.Ingester.

func (*SQSIngesterMock) ProcessChangedBlockData added in v23.0.9

func (s *SQSIngesterMock) ProcessChangedBlockData(ctx types.Context, changedPools domain.BlockPools) error

ProcessChangedBlockData implements domain.Ingester.

Jump to

Keyboard shortcuts

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