emissary/internal/config/config_test.go

20 lines
298 B
Go
Raw Permalink Normal View History

2023-02-02 10:55:24 +01: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))
}