testutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectAndCompare added in v0.0.3

func CollectAndCompare(t *testing.T, c prometheus.Collector, want string, metricNames ...string)

func MustLstat

func MustLstat(t *testing.T, path string) os.FileInfo

func MustMkdir

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

func MustNotExist

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

func MustRemove

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

func MustSetenv

func MustSetenv(t *testing.T, key, value string)

func MustTempFile

func MustTempFile(t *testing.T, fs afero.Fs) afero.File

func MustUnsetenv

func MustUnsetenv(t *testing.T, key string)

func MustWriteFile

func MustWriteFile(t *testing.T, path string, content string) string

func Raise added in v0.0.4

func Raise(sig os.Signal) error

Raise sends a signal to the current process.

func ReplaceClock

func ReplaceClock(t *testing.T, clock *clockwork.Clock, override clockwork.Clock)

Types

This section is empty.

Jump to

Keyboard shortcuts

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