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

Function TestDporConfig_String

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

Source from the content-addressed store, hash-verified

82}
83
84func TestDporConfig_String(t *testing.T) {
85 contracts := map[string]common.Address{}
86 contracts["t1"] = common.HexToAddress("0x01")
87 contracts["t2"] = common.HexToAddress("0x02")
88 dc := &DporConfig{Contracts: contracts}
89 assert.Equal(t, "dpor", dc.String())
90}
91
92func TestChainConfigString(t *testing.T) {
93 cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(10)}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected