Version: v0.0.0-...-2c994ed Latest Latest

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

Go to latest
Published: May 8, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0



Package testcheck provides common functions to check test definitions.



This section is empty.


This section is empty.


func SoftwareDeps

func SoftwareDeps(t *gotesting.T, f TestFilter, requiredDeps []string)

SoftwareDeps checks that tests matched by f declare requiredDeps as software dependencies. requiredDeps is a list of items which the test's SoftwareDeps needs to satisfy. Each item is one or '|'-connected multiple software feature names, and SoftwareDeps must contain at least one of them.

func Timeout

func Timeout(t *gotesting.T, f TestFilter, minTimeout time.Duration)

Timeout checks that tests matched by f have timeout no less than minTimeout.


type TestFilter

type TestFilter func(t *testing.TestInstance) bool

TestFilter defines the condition whether or not the test should be checked.

func Glob

func Glob(t *gotesting.T, glob string) TestFilter

Glob returns a TestFilter which returns true for a test if the test name matches with the given glob pattern.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL