testhelper

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodeWithSchema

func GetCodeWithSchema(code string) string

func ParseActionInfoForTest

func ParseActionInfoForTest(t *testing.T, code map[string]string, nodeName string) *action.ActionInfo

func ParseInputSchemaForTest

func ParseInputSchemaForTest(t *testing.T, code map[string]string, opts ...func(*Options)) *input.Schema

func ParseInputSchemaForTestFull added in v0.1.0

func ParseInputSchemaForTestFull(t *testing.T, code map[string]string, opts ...func(*Options)) (*input.Schema, error)

func ParseSchemaForTest

func ParseSchemaForTest(t *testing.T, code map[string]string, opts ...func(*Options)) *schema.Schema

func ParseSchemaForTestFull

func ParseSchemaForTestFull(t *testing.T, code map[string]string, opts ...func(*Options)) (*schema.Schema, error)

func TempDir

func TempDir(path string) func(*Options)

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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