Back to godoc.org
go.opentelemetry.io/collector/config/configtest

package configtest

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Index

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier