utils

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTestCase

func AddTestCase(t TestCase)

func RunToCompletion

func RunToCompletion[T any](t *testing.T, test TestCase)

RunToCompletion simplest version of the test where it runs to completion and matches the output

Types

type TestCase

type TestCase struct {
	Name           string
	WorkflowPath   string
	Workflow       *model.Workflow
	Input          map[string]any
	ExpectedOutput any
	Test           func(t *testing.T, test TestCase)
}

func GetTestCases

func GetTestCases() []TestCase

Jump to

Keyboard shortcuts

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