mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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 BlockStore

type BlockStore struct {
	mock.Mock
}

BlockStore is an autogenerated mock type for the BlockStore type

func NewBlockStore

func NewBlockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockStore

NewBlockStore creates a new instance of BlockStore. 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 (*BlockStore) Base added in v1.3.0

func (_m *BlockStore) Base() int64

Base provides a mock function with no fields

func (*BlockStore) EXPECT added in v1.4.0

func (_m *BlockStore) EXPECT() *BlockStore_Expecter

func (*BlockStore) Height

func (_m *BlockStore) Height() int64

Height provides a mock function with no fields

func (*BlockStore) LoadBlockCommit

func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit

LoadBlockCommit provides a mock function with given fields: height

func (*BlockStore) LoadBlockMeta

func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta

LoadBlockMeta provides a mock function with given fields: height

type BlockStore_Base_Call added in v1.4.0

type BlockStore_Base_Call struct {
	*mock.Call
}

BlockStore_Base_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Base'

func (*BlockStore_Base_Call) Return added in v1.4.0

func (*BlockStore_Base_Call) Run added in v1.4.0

func (_c *BlockStore_Base_Call) Run(run func()) *BlockStore_Base_Call

func (*BlockStore_Base_Call) RunAndReturn added in v1.4.0

func (_c *BlockStore_Base_Call) RunAndReturn(run func() int64) *BlockStore_Base_Call

type BlockStore_Expecter added in v1.4.0

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

func (*BlockStore_Expecter) Base added in v1.4.0

Base is a helper method to define mock.On call

func (*BlockStore_Expecter) Height added in v1.4.0

Height is a helper method to define mock.On call

func (*BlockStore_Expecter) LoadBlockCommit added in v1.4.0

func (_e *BlockStore_Expecter) LoadBlockCommit(height interface{}) *BlockStore_LoadBlockCommit_Call

LoadBlockCommit is a helper method to define mock.On call

  • height int64

func (*BlockStore_Expecter) LoadBlockMeta added in v1.4.0

func (_e *BlockStore_Expecter) LoadBlockMeta(height interface{}) *BlockStore_LoadBlockMeta_Call

LoadBlockMeta is a helper method to define mock.On call

  • height int64

type BlockStore_Height_Call added in v1.4.0

type BlockStore_Height_Call struct {
	*mock.Call
}

BlockStore_Height_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Height'

func (*BlockStore_Height_Call) Return added in v1.4.0

func (*BlockStore_Height_Call) Run added in v1.4.0

func (_c *BlockStore_Height_Call) Run(run func()) *BlockStore_Height_Call

func (*BlockStore_Height_Call) RunAndReturn added in v1.4.0

func (_c *BlockStore_Height_Call) RunAndReturn(run func() int64) *BlockStore_Height_Call

type BlockStore_LoadBlockCommit_Call added in v1.4.0

type BlockStore_LoadBlockCommit_Call struct {
	*mock.Call
}

BlockStore_LoadBlockCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadBlockCommit'

func (*BlockStore_LoadBlockCommit_Call) Return added in v1.4.0

func (*BlockStore_LoadBlockCommit_Call) Run added in v1.4.0

func (*BlockStore_LoadBlockCommit_Call) RunAndReturn added in v1.4.0

type BlockStore_LoadBlockMeta_Call added in v1.4.0

type BlockStore_LoadBlockMeta_Call struct {
	*mock.Call
}

BlockStore_LoadBlockMeta_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadBlockMeta'

func (*BlockStore_LoadBlockMeta_Call) Return added in v1.4.0

func (*BlockStore_LoadBlockMeta_Call) Run added in v1.4.0

func (*BlockStore_LoadBlockMeta_Call) RunAndReturn added in v1.4.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳