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

Function TestLoadClusterConfig

internal/configs/cluster_config_test.go:12–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestLoadClusterConfig(t *testing.T) {
13 if !testutils.IsSingleTesting() {
14 return
15 }
16
17 config, err := configs.LoadClusterConfig()
18 if err != nil {
19 t.Fatal(err)
20 }
21 t.Logf("%+v", config)
22
23 configData, err := yaml.Marshal(config)
24 if err != nil {
25 t.Fatal(err)
26 }
27 t.Log(string(configData))
28}

Callers

nothing calls this directly

Calls 3

IsSingleTestingFunction · 0.92
LoadClusterConfigFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected