presets

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoMain

func DoMain(m *testing.M, opts ...stack.Option)

DoMain runs M with the pre- and post-processing of tests, to setup the default global orchestrator and global logger. This will os.Exit(code) and not return.

func NewSimpleInterop

func NewSimpleInterop(dest *TestSetup[*SimpleInterop]) stack.Option

func Orchestrator

func Orchestrator() stack.Orchestrator

Orchestrator returns the globally configured orchestrator.

Add a TestMain to your test package init the orchestrator:

func TestMain(m *testing.M) {
    presets.DoMain(m)
}

Types

type SimpleInterop

type SimpleInterop struct {
	Log        log.Logger
	T          devtest.T
	Supervisor *dsl.Supervisor
}

type TestSetup added in v1.13.1

type TestSetup[V any] func(t devtest.T) V

TestSetup is a function that initializes a desired presentation of the system

Jump to

Keyboard shortcuts

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