utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 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 *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 map[string]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