bouncer/internal/config/config_test.go

20 lines
298 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
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))
}