treetest

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package treetest implements fake Tree for testing in CV.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	// TreeStatus represents the current status of this fake Tree.
	TreeStatus tree.Status
	// contains filtered or unexported fields
}

Fake simulates Tree status app in test.

func NewFake

func NewFake(ctx context.Context, state tree.State) *Fake

NewFake returns a fake Tree.

func (*Fake) Client

func (f *Fake) Client() tree.Client

Client returns a client�of this Fake Tree.

func (*Fake) ModifyState

func (f *Fake) ModifyState(ctx context.Context, newState tree.State)

ModifyState changes the state of this fake Tree.

Jump to

Keyboard shortcuts

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