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

Function TestConfigValue

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

Source from the content-addressed store, hash-verified

16}
17
18func TestConfigValue(t *testing.T) {
19 viper.AddConfigPath("./test-fixtures")
20 ReadConfig("test_config")
21
22 if ConfigValue("spotify.device_name") != "my_device_name" {
23 t.Error("Failed to retrieve value from test_config.yaml")
24 }
25
26}

Callers

nothing calls this directly

Calls 2

ReadConfigFunction · 0.85
ConfigValueFunction · 0.85

Tested by

no test coverage detected