aboutsummaryrefslogtreecommitdiff
path: root/config/config_test.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-01-12 15:56:54 +0100
committerJulien Dessaux2021-01-12 15:58:11 +0100
commit7b48de296f8ea284d0f3604b6ea161adcfccd9af (patch)
treeded0f326a50e6ff788cfe42fd51767085f388910 /config/config_test.go
parentFixed invalid handling of menu offsets (diff)
downloadshell-game-launcher-7b48de296f8ea284d0f3604b6ea161adcfccd9af.tar.gz
shell-game-launcher-7b48de296f8ea284d0f3604b6ea161adcfccd9af.tar.bz2
shell-game-launcher-7b48de296f8ea284d0f3604b6ea161adcfccd9af.zip
Wrote a minimal config and refactored all tests from it to simplify everything
Diffstat (limited to '')
-rw-r--r--config/config_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/config_test.go b/config/config_test.go
index 5679d06..be24a21 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -19,6 +19,12 @@ func TestLoadFile(t *testing.T) {
t.Fatal("invalid_yaml config file failed without error")
}
+ // Minimal yaml file
+ _, err = LoadFile("test_data/minimal.yaml")
+ if err != nil {
+ t.Fatal("minimal config file should load without errors")
+ }
+
// TODO test non existant game in play actions, and duplicate
//menuEntry = MenuEntry{
//Key: "p",