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

Function TestGasTable

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

Source from the content-addressed store, hash-verified

117}
118
119func TestGasTable(t *testing.T) {
120 SetRunMode(Dev)
121 cc := ChainConfig{Dpor: nil, ChainID: nil}
122 assert.Equal(t, GasTableCep1, cc.GasTable(big.NewInt(0)))
123}
124
125func TestConfigCompatError(t *testing.T) {
126 err := ConfigCompatError{What: "xxx", StoredConfig: nil, NewConfig: nil, RewindTo: 1}

Callers

nothing calls this directly

Calls 3

GasTableMethod · 0.95
SetRunModeFunction · 0.70
EqualMethod · 0.65

Tested by

no test coverage detected