tree

package
v1.9.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: BSD-3-Clause Imports: 4 Imported by: 2

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) Accept added in v1.9.1

func (m *MockTree) Accept(arg0 snowman.Block) error

Accept mocks base method.

func (*MockTree) Add added in v1.9.1

func (m *MockTree) Add(arg0 snowman.Block)

Add mocks base method.

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.

func (*MockTree) Get added in v1.9.1

func (m *MockTree) Get(arg0 snowman.Block) (snowman.Block, bool)

Get mocks base method.

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 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(snowman.Block) error
}

func New

func New() Tree

Jump to

Keyboard shortcuts

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