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

Function TestSetRunModeToDev

configs/run_mode_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestSetRunModeToDev(t *testing.T) {
12 SetRunMode(Dev)
13 runMode := GetRunMode()
14 assert.Equal(t, Dev, runMode)
15 assert.Equal(t, true, IsDev())
16}
17
18func TestSetRunModeToProd(t *testing.T) {
19 SetRunMode(Mainnet)

Callers

nothing calls this directly

Calls 4

GetRunModeFunction · 0.85
IsDevFunction · 0.85
SetRunModeFunction · 0.70
EqualMethod · 0.65

Tested by

no test coverage detected