tester

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TM_TimeTravel is the default time mode. Time is advanced by directly jumping to the next timer ready to be fired.
	TM_TimeTravel timeMode = iota

	// TM_WallClock prevents time traveling. Timers are only fired when the time has actually passed.
	TM_WallClock
)

Variables

This section is empty.

Functions

func NewWorkflowTester

func NewWorkflowTester[TResult any](workflow workflow.Workflow, opts ...WorkflowTesterOption) *workflowTester[TResult]

Types

type WorkflowTesterOption added in v0.4.0

type WorkflowTesterOption func(*options)

func WithContextPropagator added in v0.14.0

func WithContextPropagator(prop workflow.ContextPropagator) WorkflowTesterOption

func WithConverter added in v0.9.0

func WithConverter(converter converter.Converter) WorkflowTesterOption

func WithLogger added in v0.4.0

func WithLogger(logger *slog.Logger) WorkflowTesterOption

func WithTestTimeout added in v0.4.0

func WithTestTimeout(timeout time.Duration) WorkflowTesterOption

Jump to

Keyboard shortcuts

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