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

Function TestEVM

core/vm/runtime/runtime_test.go:59–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestEVM(t *testing.T) {
60 defer func() {
61 if r := recover(); r != nil {
62 t.Fatalf("crashed with: %v", r)
63 }
64 }()
65
66 Execute([]byte{
67 byte(vm.DIFFICULTY),
68 byte(vm.TIMESTAMP),
69 byte(vm.GASLIMIT),
70 byte(vm.PUSH1),
71 byte(vm.ORIGIN),
72 byte(vm.BLOCKHASH),
73 byte(vm.COINBASE),
74 }, nil, nil)
75}
76
77func TestExecute(t *testing.T) {
78 ret, _, err := Execute([]byte{

Callers

nothing calls this directly

Calls 1

ExecuteFunction · 0.85

Tested by

no test coverage detected