statemock

package
v1.11.12-ubuntu-noble.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package statemock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

State is a mock of State interface.

func NewState

func NewState(ctrl *gomock.Controller) *State

NewState creates a new mock instance.

func (*State) DeleteBlock

func (m *State) DeleteBlock(arg0 ids.ID) error

DeleteBlock mocks base method.

func (*State) DeleteBlockIDAtHeight

func (m *State) DeleteBlockIDAtHeight(arg0 uint64) error

DeleteBlockIDAtHeight mocks base method.

func (*State) DeleteLastAccepted

func (m *State) DeleteLastAccepted() error

DeleteLastAccepted mocks base method.

func (*State) EXPECT

func (m *State) EXPECT() *StateMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*State) GetBlock

func (m *State) GetBlock(arg0 ids.ID) (block.Block, error)

GetBlock mocks base method.

func (*State) GetBlockIDAtHeight

func (m *State) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error)

GetBlockIDAtHeight mocks base method.

func (*State) GetForkHeight

func (m *State) GetForkHeight() (uint64, error)

GetForkHeight mocks base method.

func (*State) GetLastAccepted

func (m *State) GetLastAccepted() (ids.ID, error)

GetLastAccepted mocks base method.

func (*State) GetMinimumHeight

func (m *State) GetMinimumHeight() (uint64, error)

GetMinimumHeight mocks base method.

func (*State) PutBlock

func (m *State) PutBlock(arg0 block.Block) error

PutBlock mocks base method.

func (*State) SetBlockIDAtHeight

func (m *State) SetBlockIDAtHeight(arg0 uint64, arg1 ids.ID) error

SetBlockIDAtHeight mocks base method.

func (*State) SetForkHeight

func (m *State) SetForkHeight(arg0 uint64) error

SetForkHeight mocks base method.

func (*State) SetLastAccepted

func (m *State) SetLastAccepted(arg0 ids.ID) error

SetLastAccepted mocks base method.

type StateMockRecorder

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

StateMockRecorder is the mock recorder for State.

func (*StateMockRecorder) DeleteBlock

func (mr *StateMockRecorder) DeleteBlock(arg0 any) *gomock.Call

DeleteBlock indicates an expected call of DeleteBlock.

func (*StateMockRecorder) DeleteBlockIDAtHeight

func (mr *StateMockRecorder) DeleteBlockIDAtHeight(arg0 any) *gomock.Call

DeleteBlockIDAtHeight indicates an expected call of DeleteBlockIDAtHeight.

func (*StateMockRecorder) DeleteLastAccepted

func (mr *StateMockRecorder) DeleteLastAccepted() *gomock.Call

DeleteLastAccepted indicates an expected call of DeleteLastAccepted.

func (*StateMockRecorder) GetBlock

func (mr *StateMockRecorder) GetBlock(arg0 any) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*StateMockRecorder) GetBlockIDAtHeight

func (mr *StateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call

GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.

func (*StateMockRecorder) GetForkHeight

func (mr *StateMockRecorder) GetForkHeight() *gomock.Call

GetForkHeight indicates an expected call of GetForkHeight.

func (*StateMockRecorder) GetLastAccepted

func (mr *StateMockRecorder) GetLastAccepted() *gomock.Call

GetLastAccepted indicates an expected call of GetLastAccepted.

func (*StateMockRecorder) GetMinimumHeight

func (mr *StateMockRecorder) GetMinimumHeight() *gomock.Call

GetMinimumHeight indicates an expected call of GetMinimumHeight.

func (*StateMockRecorder) PutBlock

func (mr *StateMockRecorder) PutBlock(arg0 any) *gomock.Call

PutBlock indicates an expected call of PutBlock.

func (*StateMockRecorder) SetBlockIDAtHeight

func (mr *StateMockRecorder) SetBlockIDAtHeight(arg0, arg1 any) *gomock.Call

SetBlockIDAtHeight indicates an expected call of SetBlockIDAtHeight.

func (*StateMockRecorder) SetForkHeight

func (mr *StateMockRecorder) SetForkHeight(arg0 any) *gomock.Call

SetForkHeight indicates an expected call of SetForkHeight.

func (*StateMockRecorder) SetLastAccepted

func (mr *StateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call

SetLastAccepted indicates an expected call of SetLastAccepted.

Jump to

Keyboard shortcuts

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