MCPcopy
hub / github.com/spf13/viper / initConfig

Function initConfig

viper_test.go:116–123  ·  view source on GitHub ↗
(typ, config string, v *Viper)

Source from the content-addressed store, hash-verified

114}
115
116func initConfig(typ, config string, v *Viper) {
117 v.SetConfigType(typ)
118 r := strings.NewReader(config)
119
120 if err := v.unmarshalReader(r, v.config); err != nil {
121 panic(err)
122 }
123}
124
125// initDirs makes directories for testing.
126func initDirs(t *testing.T) (string, string) {

Callers 3

TestShadowedNestedValueFunction · 0.85
TestParseNestedFunction · 0.85
doTestCaseInsensitiveFunction · 0.85

Calls 2

SetConfigTypeMethod · 0.80
unmarshalReaderMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…