20 lines
298 B
Go
20 lines
298 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
"github.com/pkg/errors"
|
|
)
|
|
|
|
func TestConfigLoad(t *testing.T) {
|
|
filepath := "./testdata/config.yml"
|
|
|
|
conf, err := NewFromFile(filepath)
|
|
if err != nil {
|
|
t.Fatal(errors.WithStack(err))
|
|
}
|
|
|
|
t.Logf("%s", spew.Sdump(conf))
|
|
}
|