testutil

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsFilePath added in v1.10.0

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