MCPcopy Create free account
hub / github.com/CPChain/chain / TestBootnodes

Function TestBootnodes

configs/general_test.go:45–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestBootnodes(t *testing.T) {
46 SetRunMode(Dev)
47 assert.Equal(t, devBootnodes, Bootnodes())
48
49 SetRunMode(Testnet)
50 assert.Equal(t, testnetBootnodes, Bootnodes())
51
52 SetRunMode(Mainnet)
53 assert.Equal(t, mainnetBootnodes, Bootnodes())
54}
55
56func TestGetDefaultValidators(t *testing.T) {
57 urls := GetDefaultValidators()

Callers

nothing calls this directly

Calls 3

BootnodesFunction · 0.85
SetRunModeFunction · 0.70
EqualMethod · 0.65

Tested by

no test coverage detected