configtest

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 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

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