(typ, config string, v *Viper)
| 114 | } |
| 115 | |
| 116 | func 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. |
| 126 | func initDirs(t *testing.T) (string, string) { |
no test coverage detected
searching dependent graphs…