Documentation
¶
Index ¶
- type MockBatchedChainVM
- func (m *MockBatchedChainVM) BatchedParseBlock(arg0 context.Context, arg1 [][]byte) ([]block.Block, error)
- func (m *MockBatchedChainVM) BuildBlock(arg0 context.Context) (block.Block, error)
- func (m *MockBatchedChainVM) EXPECT() *MockBatchedChainVMMockRecorder
- func (m *MockBatchedChainVM) GetAncestors(arg0 context.Context, arg1 ids.ID, arg2, arg3 int, arg4 time.Duration) ([][]byte, error)
- func (m *MockBatchedChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (block.Block, error)
- func (m *MockBatchedChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)
- func (m *MockBatchedChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (block.Block, error)
- func (m *MockBatchedChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error
- type MockBatchedChainVMMockRecorder
- func (mr *MockBatchedChainVMMockRecorder) BatchedParseBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) GetAncestors(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBatchedChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
- type MockBlock
- func (m *MockBlock) Accept() error
- func (m *MockBlock) Bytes() []byte
- func (m *MockBlock) EXPECT() *MockBlockMockRecorder
- func (m *MockBlock) Height() uint64
- func (m *MockBlock) ID() ids.ID
- func (m *MockBlock) Parent() ids.ID
- func (m *MockBlock) Reject() error
- func (m *MockBlock) Status() choices.Status
- func (m *MockBlock) Time() uint64
- func (m *MockBlock) Verify(arg0 context.Context) error
- type MockBlockMockRecorder
- func (mr *MockBlockMockRecorder) Accept() *gomock.Call
- func (mr *MockBlockMockRecorder) Bytes() *gomock.Call
- func (mr *MockBlockMockRecorder) Height() *gomock.Call
- func (mr *MockBlockMockRecorder) ID() *gomock.Call
- func (mr *MockBlockMockRecorder) Parent() *gomock.Call
- func (mr *MockBlockMockRecorder) Reject() *gomock.Call
- func (mr *MockBlockMockRecorder) Status() *gomock.Call
- func (mr *MockBlockMockRecorder) Time() *gomock.Call
- func (mr *MockBlockMockRecorder) Verify(arg0 interface{}) *gomock.Call
- type MockChainVM
- func (m *MockChainVM) BuildBlock(arg0 context.Context) (block.Block, error)
- func (m *MockChainVM) EXPECT() *MockChainVMMockRecorder
- func (m *MockChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (block.Block, error)
- func (m *MockChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)
- func (m *MockChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (block.Block, error)
- func (m *MockChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error
- type MockChainVMMockRecorder
- func (mr *MockChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
- type MockStateSyncableVM
- func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
- func (m *MockStateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
- func (m *MockStateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
- func (m *MockStateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
- func (m *MockStateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
- type MockStateSyncableVMMockRecorder
- func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary(arg0 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBatchedChainVM ¶
type MockBatchedChainVM struct {
// contains filtered or unexported fields
}
MockBatchedChainVM is a mock of BatchedChainVM interface.
func NewMockBatchedChainVM ¶
func NewMockBatchedChainVM(ctrl *gomock.Controller) *MockBatchedChainVM
NewMockBatchedChainVM creates a new mock instance.
func (*MockBatchedChainVM) BatchedParseBlock ¶
func (m *MockBatchedChainVM) BatchedParseBlock(arg0 context.Context, arg1 [][]byte) ([]block.Block, error)
BatchedParseBlock mocks base method.
func (*MockBatchedChainVM) BuildBlock ¶
BuildBlock mocks base method.
func (*MockBatchedChainVM) EXPECT ¶
func (m *MockBatchedChainVM) EXPECT() *MockBatchedChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBatchedChainVM) GetAncestors ¶
func (m *MockBatchedChainVM) GetAncestors(arg0 context.Context, arg1 ids.ID, arg2, arg3 int, arg4 time.Duration) ([][]byte, error)
GetAncestors mocks base method.
func (*MockBatchedChainVM) LastAccepted ¶
LastAccepted mocks base method.
func (*MockBatchedChainVM) ParseBlock ¶
ParseBlock mocks base method.
func (*MockBatchedChainVM) SetPreference ¶
SetPreference mocks base method.
type MockBatchedChainVMMockRecorder ¶
type MockBatchedChainVMMockRecorder struct {
// contains filtered or unexported fields
}
MockBatchedChainVMMockRecorder is the mock recorder for MockBatchedChainVM.
func (*MockBatchedChainVMMockRecorder) BatchedParseBlock ¶
func (mr *MockBatchedChainVMMockRecorder) BatchedParseBlock(arg0, arg1 interface{}) *gomock.Call
BatchedParseBlock indicates an expected call of BatchedParseBlock.
func (*MockBatchedChainVMMockRecorder) BuildBlock ¶
func (mr *MockBatchedChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
BuildBlock indicates an expected call of BuildBlock.
func (*MockBatchedChainVMMockRecorder) GetAncestors ¶
func (mr *MockBatchedChainVMMockRecorder) GetAncestors(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
GetAncestors indicates an expected call of GetAncestors.
func (*MockBatchedChainVMMockRecorder) GetBlock ¶
func (mr *MockBatchedChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockBatchedChainVMMockRecorder) LastAccepted ¶
func (mr *MockBatchedChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*MockBatchedChainVMMockRecorder) ParseBlock ¶
func (mr *MockBatchedChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
ParseBlock indicates an expected call of ParseBlock.
func (*MockBatchedChainVMMockRecorder) SetPreference ¶
func (mr *MockBatchedChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
SetPreference indicates an expected call of SetPreference.
type MockBlock ¶
type MockBlock struct {
// contains filtered or unexported fields
}
MockBlock is a mock of Block interface.
func NewMockBlock ¶
func NewMockBlock(ctrl *gomock.Controller) *MockBlock
NewMockBlock creates a new mock instance.
func (*MockBlock) EXPECT ¶
func (m *MockBlock) EXPECT() *MockBlockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBlockMockRecorder ¶
type MockBlockMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockMockRecorder is the mock recorder for MockBlock.
func (*MockBlockMockRecorder) Accept ¶
func (mr *MockBlockMockRecorder) Accept() *gomock.Call
Accept indicates an expected call of Accept.
func (*MockBlockMockRecorder) Bytes ¶
func (mr *MockBlockMockRecorder) Bytes() *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockBlockMockRecorder) Height ¶
func (mr *MockBlockMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height.
func (*MockBlockMockRecorder) ID ¶
func (mr *MockBlockMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockBlockMockRecorder) Parent ¶
func (mr *MockBlockMockRecorder) Parent() *gomock.Call
Parent indicates an expected call of Parent.
func (*MockBlockMockRecorder) Reject ¶
func (mr *MockBlockMockRecorder) Reject() *gomock.Call
Reject indicates an expected call of Reject.
func (*MockBlockMockRecorder) Status ¶
func (mr *MockBlockMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
func (*MockBlockMockRecorder) Time ¶
func (mr *MockBlockMockRecorder) Time() *gomock.Call
Time indicates an expected call of Time.
func (*MockBlockMockRecorder) Verify ¶
func (mr *MockBlockMockRecorder) Verify(arg0 interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockChainVM ¶
type MockChainVM struct {
// contains filtered or unexported fields
}
MockChainVM is a mock of ChainVM interface.
func NewMockChainVM ¶
func NewMockChainVM(ctrl *gomock.Controller) *MockChainVM
NewMockChainVM creates a new mock instance.
func (*MockChainVM) BuildBlock ¶
BuildBlock mocks base method.
func (*MockChainVM) EXPECT ¶
func (m *MockChainVM) EXPECT() *MockChainVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChainVM) LastAccepted ¶
LastAccepted mocks base method.
func (*MockChainVM) ParseBlock ¶
ParseBlock mocks base method.
func (*MockChainVM) SetPreference ¶
SetPreference mocks base method.
type MockChainVMMockRecorder ¶
type MockChainVMMockRecorder struct {
// contains filtered or unexported fields
}
MockChainVMMockRecorder is the mock recorder for MockChainVM.
func (*MockChainVMMockRecorder) BuildBlock ¶
func (mr *MockChainVMMockRecorder) BuildBlock(arg0 interface{}) *gomock.Call
BuildBlock indicates an expected call of BuildBlock.
func (*MockChainVMMockRecorder) GetBlock ¶
func (mr *MockChainVMMockRecorder) GetBlock(arg0, arg1 interface{}) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockChainVMMockRecorder) LastAccepted ¶
func (mr *MockChainVMMockRecorder) LastAccepted(arg0 interface{}) *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*MockChainVMMockRecorder) ParseBlock ¶
func (mr *MockChainVMMockRecorder) ParseBlock(arg0, arg1 interface{}) *gomock.Call
ParseBlock indicates an expected call of ParseBlock.
func (*MockChainVMMockRecorder) SetPreference ¶
func (mr *MockChainVMMockRecorder) SetPreference(arg0, arg1 interface{}) *gomock.Call
SetPreference indicates an expected call of SetPreference.
type MockStateSyncableVM ¶
type MockStateSyncableVM struct {
// contains filtered or unexported fields
}
MockStateSyncableVM is a mock of StateSyncableVM interface.
func NewMockStateSyncableVM ¶
func NewMockStateSyncableVM(ctrl *gomock.Controller) *MockStateSyncableVM
NewMockStateSyncableVM creates a new mock instance.
func (*MockStateSyncableVM) EXPECT ¶
func (m *MockStateSyncableVM) EXPECT() *MockStateSyncableVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateSyncableVM) GetLastStateSummary ¶
func (m *MockStateSyncableVM) GetLastStateSummary(arg0 context.Context) (block.StateSummary, error)
GetLastStateSummary mocks base method.
func (*MockStateSyncableVM) GetOngoingSyncStateSummary ¶
func (m *MockStateSyncableVM) GetOngoingSyncStateSummary(arg0 context.Context) (block.StateSummary, error)
GetOngoingSyncStateSummary mocks base method.
func (*MockStateSyncableVM) GetStateSummary ¶
func (m *MockStateSyncableVM) GetStateSummary(arg0 context.Context, arg1 uint64) (block.StateSummary, error)
GetStateSummary mocks base method.
func (*MockStateSyncableVM) ParseStateSummary ¶
func (m *MockStateSyncableVM) ParseStateSummary(arg0 context.Context, arg1 []byte) (block.StateSummary, error)
ParseStateSummary mocks base method.
func (*MockStateSyncableVM) StateSyncEnabled ¶
func (m *MockStateSyncableVM) StateSyncEnabled(arg0 context.Context) (bool, error)
StateSyncEnabled mocks base method.
type MockStateSyncableVMMockRecorder ¶
type MockStateSyncableVMMockRecorder struct {
// contains filtered or unexported fields
}
MockStateSyncableVMMockRecorder is the mock recorder for MockStateSyncableVM.
func (*MockStateSyncableVMMockRecorder) GetLastStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetLastStateSummary(arg0 interface{}) *gomock.Call
GetLastStateSummary indicates an expected call of GetLastStateSummary.
func (*MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetOngoingSyncStateSummary(arg0 interface{}) *gomock.Call
GetOngoingSyncStateSummary indicates an expected call of GetOngoingSyncStateSummary.
func (*MockStateSyncableVMMockRecorder) GetStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) GetStateSummary(arg0, arg1 interface{}) *gomock.Call
GetStateSummary indicates an expected call of GetStateSummary.
func (*MockStateSyncableVMMockRecorder) ParseStateSummary ¶
func (mr *MockStateSyncableVMMockRecorder) ParseStateSummary(arg0, arg1 interface{}) *gomock.Call
ParseStateSummary indicates an expected call of ParseStateSummary.
func (*MockStateSyncableVMMockRecorder) StateSyncEnabled ¶
func (mr *MockStateSyncableVMMockRecorder) StateSyncEnabled(arg0 interface{}) *gomock.Call
StateSyncEnabled indicates an expected call of StateSyncEnabled.