mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-02 14:00:25 +08:00
24 lines
396 B
Go
24 lines
396 B
Go
package configs_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/TeaOSLab/EdgeNode/internal/configs"
|
|
_ "github.com/iwind/TeaGo/bootstrap"
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
func TestLoadAPIConfig(t *testing.T) {
|
|
config, err := configs.LoadAPIConfig()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Logf("%+v", config)
|
|
|
|
configData, err := yaml.Marshal(config)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log(string(configData))
|
|
}
|