behave

package
v0.0.0-...-568de10 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func() State

func (Action) Execute

func (a Action) Execute() State

func (Action) Reset

func (Action) Reset()

type Behavior

type Behavior interface {
	Reset()
	Execute() State
}

func Invert

func Invert(b Behavior) Behavior

func Repeat

func Repeat(b Behavior) Behavior

func Selection

func Selection(bs ...Behavior) Behavior

func Sequence

func Sequence(bs ...Behavior) Behavior

type Conditional

type Conditional func() bool

func (Conditional) Execute

func (c Conditional) Execute() State

type State

type State uint
const (
	Running State = iota
	Success
	Failure
	Unknown
)

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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