blockmock

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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

func (m *MockBatchedChainVM) BuildBlock(arg0 context.Context) (block.Block, error)

BuildBlock mocks base method.

func (*MockBatchedChainVM) EXPECT

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) GetBlock

func (m *MockBatchedChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (block.Block, error)

GetBlock mocks base method.

func (*MockBatchedChainVM) LastAccepted

func (m *MockBatchedChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)

LastAccepted mocks base method.

func (*MockBatchedChainVM) ParseBlock

func (m *MockBatchedChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (block.Block, error)

ParseBlock mocks base method.

func (*MockBatchedChainVM) SetPreference

func (m *MockBatchedChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error

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) Accept

func (m *MockBlock) Accept() error

Accept mocks base method.

func (*MockBlock) Bytes

func (m *MockBlock) Bytes() []byte

Bytes mocks base method.

func (*MockBlock) EXPECT

func (m *MockBlock) EXPECT() *MockBlockMockRecorder

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

func (*MockBlock) Height

func (m *MockBlock) Height() uint64

Height mocks base method.

func (*MockBlock) ID

func (m *MockBlock) ID() ids.ID

ID mocks base method.

func (*MockBlock) Parent

func (m *MockBlock) Parent() ids.ID

Parent mocks base method.

func (*MockBlock) Reject

func (m *MockBlock) Reject() error

Reject mocks base method.

func (*MockBlock) Status

func (m *MockBlock) Status() choices.Status

Status mocks base method.

func (*MockBlock) Time

func (m *MockBlock) Time() uint64

Time mocks base method.

func (*MockBlock) Verify

func (m *MockBlock) Verify(arg0 context.Context) error

Verify mocks base method.

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

func (m *MockChainVM) BuildBlock(arg0 context.Context) (block.Block, error)

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) GetBlock

func (m *MockChainVM) GetBlock(arg0 context.Context, arg1 ids.ID) (block.Block, error)

GetBlock mocks base method.

func (*MockChainVM) LastAccepted

func (m *MockChainVM) LastAccepted(arg0 context.Context) (ids.ID, error)

LastAccepted mocks base method.

func (*MockChainVM) ParseBlock

func (m *MockChainVM) ParseBlock(arg0 context.Context, arg1 []byte) (block.Block, error)

ParseBlock mocks base method.

func (*MockChainVM) SetPreference

func (m *MockChainVM) SetPreference(arg0 context.Context, arg1 ids.ID) error

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

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.

Jump to

Keyboard shortcuts

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