mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.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 Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks

func NewBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blocks

NewBlocks creates a new instance of Blocks. 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 (*Blocks) EXPECT added in v0.46.0

func (_m *Blocks) EXPECT() *Blocks_Expecter

func (*Blocks) FinalizedHeader

func (_mock *Blocks) FinalizedHeader() (*flow.Header, error)

FinalizedHeader provides a mock function for the type Blocks

func (*Blocks) HeaderByID

func (_mock *Blocks) HeaderByID(id flow.Identifier) (*flow.Header, error)

HeaderByID provides a mock function for the type Blocks

func (*Blocks) IndexedHeight

func (_mock *Blocks) IndexedHeight() (uint64, error)

IndexedHeight provides a mock function for the type Blocks

func (*Blocks) SealedHeader

func (_mock *Blocks) SealedHeader() (*flow.Header, error)

SealedHeader provides a mock function for the type Blocks

type Blocks_Expecter added in v0.46.0

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

func (*Blocks_Expecter) FinalizedHeader added in v0.46.0

func (_e *Blocks_Expecter) FinalizedHeader() *Blocks_FinalizedHeader_Call

FinalizedHeader is a helper method to define mock.On call

func (*Blocks_Expecter) HeaderByID added in v0.46.0

func (_e *Blocks_Expecter) HeaderByID(id interface{}) *Blocks_HeaderByID_Call

HeaderByID is a helper method to define mock.On call

  • id flow.Identifier

func (*Blocks_Expecter) IndexedHeight added in v0.46.0

func (_e *Blocks_Expecter) IndexedHeight() *Blocks_IndexedHeight_Call

IndexedHeight is a helper method to define mock.On call

func (*Blocks_Expecter) SealedHeader added in v0.46.0

func (_e *Blocks_Expecter) SealedHeader() *Blocks_SealedHeader_Call

SealedHeader is a helper method to define mock.On call

type Blocks_FinalizedHeader_Call added in v0.46.0

type Blocks_FinalizedHeader_Call struct {
	*mock.Call
}

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

func (*Blocks_FinalizedHeader_Call) Return added in v0.46.0

func (*Blocks_FinalizedHeader_Call) Run added in v0.46.0

func (*Blocks_FinalizedHeader_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_FinalizedHeader_Call) RunAndReturn(run func() (*flow.Header, error)) *Blocks_FinalizedHeader_Call

type Blocks_HeaderByID_Call added in v0.46.0

type Blocks_HeaderByID_Call struct {
	*mock.Call
}

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

func (*Blocks_HeaderByID_Call) Return added in v0.46.0

func (*Blocks_HeaderByID_Call) Run added in v0.46.0

func (*Blocks_HeaderByID_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_HeaderByID_Call) RunAndReturn(run func(id flow.Identifier) (*flow.Header, error)) *Blocks_HeaderByID_Call

type Blocks_IndexedHeight_Call added in v0.46.0

type Blocks_IndexedHeight_Call struct {
	*mock.Call
}

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

func (*Blocks_IndexedHeight_Call) Return added in v0.46.0

func (*Blocks_IndexedHeight_Call) Run added in v0.46.0

func (*Blocks_IndexedHeight_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_IndexedHeight_Call) RunAndReturn(run func() (uint64, error)) *Blocks_IndexedHeight_Call

type Blocks_SealedHeader_Call added in v0.46.0

type Blocks_SealedHeader_Call struct {
	*mock.Call
}

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

func (*Blocks_SealedHeader_Call) Return added in v0.46.0

func (*Blocks_SealedHeader_Call) Run added in v0.46.0

func (*Blocks_SealedHeader_Call) RunAndReturn added in v0.46.0

func (_c *Blocks_SealedHeader_Call) RunAndReturn(run func() (*flow.Header, error)) *Blocks_SealedHeader_Call

Jump to

Keyboard shortcuts

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