mock

package
v0.30.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEngine

type MockEngine struct {
	core.INotifier
	Events []MockEvent
}

func NewMockEngine

func NewMockEngine() *MockEngine

func (*MockEngine) ClearEvents

func (e *MockEngine) ClearEvents()

func (*MockEngine) GetProperties

func (e *MockEngine) GetProperties(symbol string) (map[string]any, error)

func (*MockEngine) HasInterface

func (e *MockEngine) HasInterface(id string) bool

func (*MockEngine) HasSequence

func (e *MockEngine) HasSequence(name string) bool

func (*MockEngine) InvokeOperation

func (e *MockEngine) InvokeOperation(symbol string, name string, args []any) (any, error)

func (*MockEngine) LastEvent

func (e *MockEngine) LastEvent() MockEvent

func (*MockEngine) PlayAllSequences

func (e *MockEngine) PlayAllSequences(ctx context.Context) error

func (*MockEngine) PlaySequence

func (e *MockEngine) PlaySequence(ctx context.Context, name string) error

func (*MockEngine) SetProperties

func (e *MockEngine) SetProperties(symbol string, params map[string]any) error

func (*MockEngine) StopAllSequences

func (e *MockEngine) StopAllSequences()

func (*MockEngine) StopSequence

func (e *MockEngine) StopSequence(name string) error

type MockEvent

type MockEvent struct {
	Command string
	Name    string
	Symbol  string
	KWArgs  map[string]any
	Args    []any
	Source  string
	Doc     *spec.ScenarioDoc
}

Jump to

Keyboard shortcuts

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