Documentation ¶
Overview ¶
Package snowmantest is a generated GoMock package.
Index ¶
- Constants
- Variables
- type Block
- type MockBlock
- func (m *MockBlock) Accept(arg0 context.Context) 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(arg0 context.Context) error
- func (m *MockBlock) Status() choices.Status
- func (m *MockBlock) Timestamp() time.Time
- func (m *MockBlock) Verify(arg0 context.Context) error
- type MockBlockMockRecorder
- func (mr *MockBlockMockRecorder) Accept(arg0 any) *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(arg0 any) *gomock.Call
- func (mr *MockBlockMockRecorder) Status() *gomock.Call
- func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call
- func (mr *MockBlockMockRecorder) Verify(arg0 any) *gomock.Call
Constants ¶
View Source
const ( GenesisHeight uint64 = 0 GenesisUnixTimestamp int64 = 1 )
Variables ¶
View Source
var ( GenesisID = ids.GenerateTestID() GenesisTimestamp = time.Unix(GenesisUnixTimestamp, 0) GenesisBytes = GenesisID[:] Genesis = BuildChain(1)[0] )
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { choices.TestDecidable ParentV ids.ID HeightV uint64 TimestampV time.Time VerifyV error BytesV []byte }
func BuildChain ¶
func BuildChild ¶
func BuildDescendants ¶
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(arg0 any) *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(arg0 any) *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) Timestamp ¶
func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call
Timestamp indicates an expected call of Timestamp.
Click to show internal directories.
Click to hide internal directories.