MCPcopy Create free account
hub / github.com/Jesserc/gevm / TestOpcodeGas

Function TestOpcodeGas

gevm/opcodes_test.go:27–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestOpcodeGas(t *testing.T) {
28 tests := []struct {
29 op Opcode
30 expected uint64
31 }{
32 {STOP, 0},
33 {ADD, 3},
34 {SUB, 3},
35 // ... other opcodes
36 }
37
38 for _, tt := range tests {
39 t.Run(tt.op.String()+" Gas", func(t *testing.T) {
40 assert.Equal(t, tt.expected, tt.op.Gas())
41 })
42 }
43}

Callers

nothing calls this directly

Calls 3

RunMethod · 0.80
GasMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected