WIP new config format

This commit is contained in:
Anton Schirg
2018-08-26 15:17:15 +02:00
parent 6425c26b1b
commit 38bb78b642
6 changed files with 305 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
package config
import (
"testing"
"github.com/kr/pretty"
"path/filepath"
)
func TestSampleConfigsAreParsedWithoutErrors(t *testing.T) {
paths, err := filepath.Glob("./samples/*")
if err != nil {
t.Errorf("glob failed: %+v", err)
}
for _, p := range paths {
c, err := ParseConfig(p)
if err != nil {
t.Errorf("error parsing %s:\n%+v", p, err)
}
t.Logf("file: %s", p)
t.Log(pretty.Sprint(c))
}
}