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

Function TestOffChainReadConfig

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

Source from the content-addressed store, hash-verified

19}
20
21func TestOffChainReadConfig(t *testing.T) {
22 config := OffChainConfig{}
23 os.Setenv("CONFIGPATH", "..")
24 config.LoadConfig()
25 assert.Equal(t, "BootstrapNode", config.NodeRole)
26}
27
28func TestOnChainReadConfig(t *testing.T) {
29 os.Setenv("CONFIGPATH", "..")

Callers

nothing calls this directly

Calls 2

LoadConfigMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected