Documentation ¶
Overview ¶
Package tree is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTree ¶ added in v1.9.1
type MockTree struct {
// contains filtered or unexported fields
}
MockTree is a mock of Tree interface.
func NewMockTree ¶ added in v1.9.1
func NewMockTree(ctrl *gomock.Controller) *MockTree
NewMockTree creates a new mock instance.
func (*MockTree) EXPECT ¶ added in v1.9.1
func (m *MockTree) EXPECT() *MockTreeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTreeMockRecorder ¶ added in v1.9.1
type MockTreeMockRecorder struct {
// contains filtered or unexported fields
}
MockTreeMockRecorder is the mock recorder for MockTree.
func (*MockTreeMockRecorder) Accept ¶ added in v1.9.1
func (mr *MockTreeMockRecorder) Accept(arg0, arg1 interface{}) *gomock.Call
Accept indicates an expected call of Accept.
func (*MockTreeMockRecorder) Add ¶ added in v1.9.1
func (mr *MockTreeMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockTreeMockRecorder) Get ¶ added in v1.9.1
func (mr *MockTreeMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
type Tree ¶
type Tree interface { // Add places the block in the tree Add(snowman.Block) // Get returns the block that was added to this tree whose parent and ID // match the provided block. If non-exists, then false will be returned. Get(snowman.Block) (snowman.Block, bool) // Accept marks the provided block as accepted and rejects every conflicting // block. Accept(context.Context, snowman.Block) error }
Click to show internal directories.
Click to hide internal directories.