Documentation
¶
Overview ¶
Package blockmock provides mock implementations for testing
Index ¶
- type MockBlock
- func (m *MockBlock) Accept(ctx context.Context) error
- func (m *MockBlock) Bytes() []byte
- func (m *MockBlock) Height() uint64
- func (m *MockBlock) ID() []byte
- func (m *MockBlock) Parent() []byte
- func (m *MockBlock) Reject(ctx context.Context) error
- func (m *MockBlock) Status() int
- func (m *MockBlock) Timestamp() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlock ¶
type MockBlock struct {
// contains filtered or unexported fields
}
MockBlock provides a mock implementation for testing
func NewMockBlock ¶
NewMockBlock creates a new mock block
Click to show internal directories.
Click to hide internal directories.