spectest

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSkip added in v2.2.0

func CheckSkip(t *testing.T)

CheckSkip checks if the fully-qualified test name matches a list of skipped test names for a given reason. If the test name matches any from a list, the reason is logged and the test is skipped.

func FindJSONFilesInDir

func FindJSONFilesInDir(t *testing.T, dir string) []string

FindJSONFilesInDir finds the JSON files in a directory.

func Path added in v2.2.0

func Path(subdir string) string

Path returns the absolute path to the given specifications repo file or subdirectory.

If the PROJECT_DIRECTORY environment variable is set, Path uses that to find the repo root path. Otherwise, it falls back to using the call stack to find the repo root path. Path panics if it can't find the repo root path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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