MCPcopy Create free account
hub / github.com/DOSNetwork/core / TestLoadConfig

Function TestLoadConfig

configuration/config_test.go:11–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestLoadConfig(t *testing.T) {
12 config := OffChainConfig{}
13 LoadConfig("../offChain.json", &config)
14 require.Equal(t, "BootstrapNode", config.NodeRole)
15
16 config2 := OnChainConfig{}
17 LoadConfig("../onChain.json", &config2)
18 require.Equal(t, "ETH", config2.ChainConfigs[0].ChainType)
19}
20
21func TestOffChainReadConfig(t *testing.T) {
22 config := OffChainConfig{}

Callers

nothing calls this directly

Calls 2

LoadConfigFunction · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected