lib

package
v0.0.0-...-9a2cfe9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package lib contains proctor functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PauseAndReap

func PauseAndReap()

PauseAndReap is like init. It runs forever and reaps any children.

func Search(root string, testFilter *regexp.Regexp) ([]string, error)

Search is a helper function to find tests in the given directory that match the regex.

Types

type TestRunner

type TestRunner interface {
	// ListTests returns a string slice of tests available to run.
	ListTests() ([]string, error)

	// TestCmds returns a slice of *exec.Cmd that will run the given tests.
	// There is no correlation between the number of exec.Cmds returned and the
	// number of tests. It could return one command to run all tests or a few
	// commands that collectively run all.
	TestCmds(tests []string) []*exec.Cmd
}

TestRunner is an interface that must be implemented for each runtime integrated with proctor.

func TestRunnerForRuntime

func TestRunnerForRuntime(runtime string) (TestRunner, error)

TestRunnerForRuntime returns a new TestRunner for the given runtime.

Jump to

Keyboard shortcuts

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