MCPcopy Create free account
hub / github.com/33cn/chain33 / initEnv

Function initEnv

executor/executor_test.go:26–34  ·  view source on GitHub ↗
(cfgstring string)

Source from the content-addressed store, hash-verified

24)
25
26func initEnv(cfgstring string) (*Executor, queue.Queue) {
27 cfg := types.NewChain33Config(cfgstring)
28 q := queue.New("channel")
29 q.SetConfig(cfg)
30 exec := New(cfg)
31 exec.client = q.Client()
32 exec.qclient, _ = client.New(exec.client, nil)
33 return exec, q
34}
35
36func TestIsModule(t *testing.T) {
37 var qmodule queue.Module = &Executor{}

Callers 13

TestExecutorGetTxGroupFunction · 0.70
BenchmarkGenRandBlockFunction · 0.70
TestKeyAllowFunction · 0.70
TestKeyAllow_evmFunction · 0.70
TestKeyLocalAllowFunction · 0.70
TestExecutorErrAPIEnvFunction · 0.70
TestCheckTxFunction · 0.70
TestExecutorUpgradeMsgFunction · 0.70
TestPluginFunction · 0.70
TestPluginBaseFunction · 0.70
TestLoadDriverForkFunction · 0.70

Calls 6

NewChain33ConfigFunction · 0.92
NewFunction · 0.92
NewFunction · 0.92
NewFunction · 0.70
SetConfigMethod · 0.65
ClientMethod · 0.65

Tested by

no test coverage detected