Documentation
¶
Index ¶
- type Blocks
- type Blocks_Expecter
- type Blocks_FinalizedHeader_Call
- func (_c *Blocks_FinalizedHeader_Call) Return(header *flow.Header, err error) *Blocks_FinalizedHeader_Call
- func (_c *Blocks_FinalizedHeader_Call) Run(run func()) *Blocks_FinalizedHeader_Call
- func (_c *Blocks_FinalizedHeader_Call) RunAndReturn(run func() (*flow.Header, error)) *Blocks_FinalizedHeader_Call
- type Blocks_HeaderByID_Call
- func (_c *Blocks_HeaderByID_Call) Return(header *flow.Header, err error) *Blocks_HeaderByID_Call
- func (_c *Blocks_HeaderByID_Call) Run(run func(id flow.Identifier)) *Blocks_HeaderByID_Call
- func (_c *Blocks_HeaderByID_Call) RunAndReturn(run func(id flow.Identifier) (*flow.Header, error)) *Blocks_HeaderByID_Call
- type Blocks_IndexedHeight_Call
- type Blocks_SealedHeader_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blocks ¶
Blocks is an autogenerated mock type for the Blocks type
func NewBlocks ¶
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 ¶
FinalizedHeader provides a mock function for the type Blocks
func (*Blocks) HeaderByID ¶
HeaderByID provides a mock function for the type Blocks
func (*Blocks) IndexedHeight ¶
IndexedHeight 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
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 (_c *Blocks_FinalizedHeader_Call) Return(header *flow.Header, err error) *Blocks_FinalizedHeader_Call
func (*Blocks_FinalizedHeader_Call) Run ¶ added in v0.46.0
func (_c *Blocks_FinalizedHeader_Call) Run(run func()) *Blocks_FinalizedHeader_Call
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
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 (_c *Blocks_HeaderByID_Call) Return(header *flow.Header, err error) *Blocks_HeaderByID_Call
func (*Blocks_HeaderByID_Call) Run ¶ added in v0.46.0
func (_c *Blocks_HeaderByID_Call) Run(run func(id flow.Identifier)) *Blocks_HeaderByID_Call
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
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 (_c *Blocks_IndexedHeight_Call) Return(v uint64, err error) *Blocks_IndexedHeight_Call
func (*Blocks_IndexedHeight_Call) Run ¶ added in v0.46.0
func (_c *Blocks_IndexedHeight_Call) Run(run func()) *Blocks_IndexedHeight_Call
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
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 (_c *Blocks_SealedHeader_Call) Return(header *flow.Header, err error) *Blocks_SealedHeader_Call
func (*Blocks_SealedHeader_Call) Run ¶ added in v0.46.0
func (_c *Blocks_SealedHeader_Call) Run(run func()) *Blocks_SealedHeader_Call
func (*Blocks_SealedHeader_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Blocks_SealedHeader_Call) RunAndReturn(run func() (*flow.Header, error)) *Blocks_SealedHeader_Call