testutils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectDirectory

func ProjectDirectory(t *testing.T) string

ProjectDirectory returns the directory of the project being worked on, by walking the tree upwards until it finds a go.mod file.

func ProjectDirectoryJoin

func ProjectDirectoryJoin(t *testing.T, pathElems ...string) string

ProjectDirectoryJoinPath returns a path joined to the project directory. See `ProjectDirectory` for more information

func SkipIfCI

func SkipIfCI(t *testing.T, args ...any)

SkipIfCI skips the test if the current environment is a CI/CD environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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