testutils

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner[C any] interface {
	sdk.Runner[C]
	TestRunner
}

func NewRunner

func NewRunner[C any](tb testing.TB, config C) Runner[C]

type TestRunner

type TestRunner interface {
	Result() (bool, any, error)

	// SetStrictTriggers causes the workflow to fail if a trigger isn'tb in the registry
	// this is useful for testing the workflow registrations.
	SetStrictTriggers(strict bool)

	// SetMaxResponseSizeBytes sets the maximum response size for the runtime.
	// Do not change unless you are working with a non-standard configuration.
	SetMaxResponseSizeBytes(maxResponseSizebytes uint64)

	Logs() []string

	SetRandSource(source rand.Source)

	SetSecret(id, namespace, value string) error
}

type TooManyTriggers

type TooManyTriggers struct{}

func (TooManyTriggers) Error

func (e TooManyTriggers) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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