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
Click to show internal directories.
Click to hide internal directories.