Füge Tests für date und config hinzu

This commit is contained in:
Gonne 2022-11-06 15:48:37 +01:00
parent fe54d76ab2
commit 3db1627680
3 changed files with 78 additions and 1 deletions

15
config/config_test.go Normal file
View file

@ -0,0 +1,15 @@
package config
import (
"testing"
)
// Verify that the sample config in config/config.json can be read to a config struct
// and passes the validation
func TestSampleConfig(t *testing.T) {
var conf Config
err := ReadConfigFile("config.json", &conf)
if err != nil {
t.Errorf("Unable to use sample config file: %s", err)
}
}