compiler: adjust test's checkInstrCount

Remove unnecessary code.
This commit is contained in:
Anna Shaleva 2022-09-20 09:32:05 +03:00
parent 2b8271055f
commit 293dbf3d1b

View file

@ -3,7 +3,6 @@ package compiler_test
import ( import (
"fmt" "fmt"
"math/big" "math/big"
"os"
"strings" "strings"
"testing" "testing"
@ -18,7 +17,6 @@ func checkCallCount(t *testing.T, src string, expectedCall, expectedInitSlot, ex
func checkInstrCount(t *testing.T, src string, expectedSSlotCount, expectedCall, expectedInitSlot, expectedLocalsMain int) { func checkInstrCount(t *testing.T, src string, expectedSSlotCount, expectedCall, expectedInitSlot, expectedLocalsMain int) {
v, sp, _ := vmAndCompileInterop(t, src) v, sp, _ := vmAndCompileInterop(t, src)
v.PrintOps(os.Stdout)
mainStart := -1 mainStart := -1
for _, m := range sp.info.Methods { for _, m := range sp.info.Methods {
if m.Name.Name == "main" { if m.Name.Name == "main" {