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

Function TestSetRunModeToUnknown

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

Source from the content-addressed store, hash-verified

32}
33
34func TestSetRunModeToUnknown(t *testing.T) {
35 err := SetRunMode("Unknown")
36 if err == nil {
37 t.Error("set Unknown runmode should be error")
38 }
39 SetRunMode(Dev)
40}
41
42func TestSetRunModeToNil(t *testing.T) {
43 SetRunMode("")

Callers

nothing calls this directly

Calls 2

SetRunModeFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected