Füge Tests für date und config hinzu
This commit is contained in:
parent
fe54d76ab2
commit
3db1627680
3 changed files with 78 additions and 1 deletions
15
config/config_test.go
Normal file
15
config/config_test.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue