test

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanConfigDir

func CleanConfigDir(t *testing.T) func()

CleanConfigDir creates a temp config dir and sets the config to that directory. It returns a func() that should be passed to t.Cleanup(). Use in tests like so: t.Cleanup(test.CleanConfigDir(t))

Types

This section is empty.

Jump to

Keyboard shortcuts

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