Documentation ¶
Overview ¶
Package statemock is a generated GoMock package.
Index ¶
- type State
- func (m *State) DeleteBlock(arg0 ids.ID) error
- func (m *State) DeleteBlockIDAtHeight(arg0 uint64) error
- func (m *State) DeleteLastAccepted() error
- func (m *State) EXPECT() *StateMockRecorder
- func (m *State) GetBlock(arg0 ids.ID) (block.Block, error)
- func (m *State) GetBlockIDAtHeight(arg0 uint64) (ids.ID, error)
- func (m *State) GetForkHeight() (uint64, error)
- func (m *State) GetLastAccepted() (ids.ID, error)
- func (m *State) GetMinimumHeight() (uint64, error)
- func (m *State) PutBlock(arg0 block.Block) error
- func (m *State) SetBlockIDAtHeight(arg0 uint64, arg1 ids.ID) error
- func (m *State) SetForkHeight(arg0 uint64) error
- func (m *State) SetLastAccepted(arg0 ids.ID) error
- type StateMockRecorder
- func (mr *StateMockRecorder) DeleteBlock(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) DeleteBlockIDAtHeight(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) DeleteLastAccepted() *gomock.Call
- func (mr *StateMockRecorder) GetBlock(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetBlockIDAtHeight(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) GetForkHeight() *gomock.Call
- func (mr *StateMockRecorder) GetLastAccepted() *gomock.Call
- func (mr *StateMockRecorder) GetMinimumHeight() *gomock.Call
- func (mr *StateMockRecorder) PutBlock(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) SetBlockIDAtHeight(arg0, arg1 any) *gomock.Call
- func (mr *StateMockRecorder) SetForkHeight(arg0 any) *gomock.Call
- func (mr *StateMockRecorder) SetLastAccepted(arg0 any) *gomock.Call
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 (*State) DeleteBlock ¶
DeleteBlock mocks base method.
func (*State) DeleteBlockIDAtHeight ¶
DeleteBlockIDAtHeight mocks base method.
func (*State) DeleteLastAccepted ¶
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) GetBlockIDAtHeight ¶
GetBlockIDAtHeight mocks base method.
func (*State) GetForkHeight ¶
GetForkHeight mocks base method.
func (*State) GetLastAccepted ¶
GetLastAccepted mocks base method.
func (*State) GetMinimumHeight ¶
GetMinimumHeight mocks base method.
func (*State) SetBlockIDAtHeight ¶
SetBlockIDAtHeight mocks base method.
func (*State) SetForkHeight ¶
SetForkHeight 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.