conform

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CliTests

func CliTests(binary string, options ...CliTestOption)

CliTests describes TDL conformace tests for binary runners. The provided binary must exist and be executable. Args can be provided if the codegen functionality is provided by a subcommand. CliTests MUST be called within the Ginkgo test construction phase.

func Execute

func Execute(fsys afero.Fs, endpoint string, args []string) error

func IOSuite

func IOSuite(tests []*testing.Test, pipeline pipe.IO)

IOSuite is a helper function for defining IOTests. It calls IOTest for each testing.Test in tests

IOSuite MUST be called during the Ginkgo test construction phase

func IOTest

func IOTest(test *testing.Test, pipeline pipe.IO) bool

IOTest asserts that given [test.Input] [generator] produces [test.Output]

Types

type CliTestOption

type CliTestOption func(*CliTestOptions)

func WithArgs

func WithArgs(args ...string) CliTestOption

func WithIOTests

func WithIOTests(tests ...*testing.Test) CliTestOption

type CliTestOptions

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

Jump to

Keyboard shortcuts

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