MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestLoadAPIConfig

Function TestLoadAPIConfig

internal/configs/api_config_test.go:10–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers

nothing calls this directly

Calls 2

LoadAPIConfigFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected