MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / TestReadConfigError

Function TestReadConfigError

config_test.go:8–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestReadConfigError(t *testing.T) {
9 defer func() {
10 if r := recover(); r == nil {
11 t.Errorf("The code did not panic")
12 }
13 }()
14
15 ReadConfig("unknown_path")
16}
17
18func TestConfigValue(t *testing.T) {
19 viper.AddConfigPath("./test-fixtures")

Callers

nothing calls this directly

Calls 1

ReadConfigFunction · 0.85

Tested by

no test coverage detected