test

package
v0.271.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Failed testOutcome = iota
	Invalid
	Ignored
	Passed
)

Variables

This section is empty.

Functions

func ForeachLeaf added in v0.246.0

func ForeachLeaf(val rel.Value, path string, leafAction func(val rel.Value, path string))

ForeachLeaf visits all leaves in an test tree, invoking the leafAction callback for each leaf encountered. Tuples, arrays and dictionaries are considered test containers and not leaves, they are recursed into.

func Report

func Report(w io.Writer, testFiles []testFile) error

Report writes a formatted output of all the test files and their test results, and returns and error if the test run failed.

func RunTests added in v0.246.0

func RunTests(ctx context.Context, w io.Writer, path string) error

RunTests runs all arr.ai tests in a given path. It returns an error if the path is invalid, contains no test files or has invalid arr.ai code in any of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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