form_task_test

package
v0.51.2 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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestTextForms

func TestTextForms[T any](t *testing.T, label string, formTask coretask.Task[T], testCases []*TextFormTestCase, cmpOptions ...cmp.Option)

TestTextForms tests an inspection task generating a TextForm in the metadata.

Types

type TextFormTestCase

type TextFormTestCase struct {
	Name              string
	Input             string
	ExpectedValue     any
	ExpectedFormField inspectionmetadata.TextParameterFormField
	Dependencies      []coretask.UntypedTask
	Before            func()
	After             func()
}

TextFormTestCase is the type to represent a test case of an inspection task to generate a text field.

Jump to

Keyboard shortcuts

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