package
0.0.0-20230129155529-b74a4f7c78e5
Repository: https://github.com/linuxkit/rtf.git
Documentation: pkg.go.dev

# Functions

CheckLabel determines if a group or test should run based on its labels and the RunConfig.
InitNewProject creates a new Group, and calls Init() on it.
IsGroup determines if a path contains a group.
IsTest determines if a path contains a test or not.
NewGroup creates a new Group with the given parent and path.
NewProject creates a new top-level Group at the provided path.
NewRunConfig returns a new RunConfig from test labels and a pattern.
NewTest creates a new test.
ParseLabels constucts a map[string]bool for both positive and negative labels from a comma separated list.
ParseTags reads the provided file and returns all discovered tags or an error.
ValidatePattern validates that an arg string is a valid test pattern.

# Constants

Cancel is a test cancellation.
Fail is a test failure.
GroupFileName is the name of the group script (without the extension).
Pass is a test pass.
PostTestFileName is the name of a post-test script (without the extension).
PreTestFileName is the name of a pre-test script (without the extension).
Skip is a test skip.
TestFileName is the name of a test script (without the extension).

# Variables

TestResultColorFunc provides a mapping of numerical result values to a fmt.Sprintf() style function.
TestResultNames provides a mapping of numerical result values to human readable strings.

# Structs

Group is a group of tests and other groups.
GroupCommand is a command that is runnable, either a test or pre/post script.
Info encapsulates the information necessary to list tests and test groups.
OSInfo contains information about the OS the tests are running on.
Project is a group of tests and other groups with a few higher level functions.
Result encapsulates a TestResult and additional data about a test run.
RunConfig contains runtime configuration information.
Summary contains a summary of a whole run, mostly used for writing out a JSON file.
Tags are the permitted tags within a test file.
Test is a test.

# Interfaces

TestContainer is a container that can hold one or more tests.

# Type aliases

ByOrder implements the sort.Sorter interface for TestContainer.
TestResult is the result of a test run.