testutil

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsFilePath

func AbsFilePath(t *testing.T, path string) string

AbsFilePath calls filepath.Abs on path.

func Setenv

func Setenv(t *testing.T, name, val string)

Setenv sets an environment variable to a temporary value for the duration of the test.

This shim can be removed once support for Go <1.17 is dropped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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