github.com/TeaOSLab/EdgeNode@v1.3.8/internal/configs/api_config_test.go (about) 1 package configs_test 2 3 import ( 4 "github.com/TeaOSLab/EdgeNode/internal/configs" 5 _ "github.com/iwind/TeaGo/bootstrap" 6 "gopkg.in/yaml.v3" 7 "testing" 8 ) 9 10 func TestLoadAPIConfig(t *testing.T) { 11 config, err := configs.LoadAPIConfig() 12 if err != nil { 13 t.Fatal(err) 14 } 15 t.Logf("%+v", config) 16 17 configData, err := yaml.Marshal(config) 18 if err != nil { 19 t.Fatal(err) 20 } 21 t.Log(string(configData)) 22 }