configtest

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFile added in v0.7.0

func LoadConfigFile(t *testing.T, fileName string, factories component.Factories) (*configmodels.Config, error)

LoadConfigFile loads a config from file.

func NewViperFromYamlFile

func NewViperFromYamlFile(t *testing.T, fileName string) *viper.Viper

NewViperFromYamlFile creates a viper instance that reads the given fileName as yaml config and can then be used to unmarshal the file contents to objects. Example usage for testing can be found in configtest_test.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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