configtest

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestConfig

func NewTestConfig() config.VersionWrapper

func NewTestConfigFilePath

func NewTestConfigFilePath(t *testing.T, fs afero.Fs, options ...Option) string

func ResetSnipkitHome added in v1.4.0

func ResetSnipkitHome(t *testing.T)

func SetSnipkitHomeEnv added in v1.4.0

func SetSnipkitHomeEnv(t *testing.T, val string)

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures an App.

func WithAdapter

func WithAdapter(adapter func(c *config.Config)) Option

WithAdapter allows to modify the config after creation but before marshaling.

Jump to

Keyboard shortcuts

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