diff --git a/pkg/vm/tests/assign_test.go b/pkg/vm/tests/assign_test.go index 5c2460d41..7882048ec 100644 --- a/pkg/vm/tests/assign_test.go +++ b/pkg/vm/tests/assign_test.go @@ -131,5 +131,5 @@ var assignTestCases = []testCase{ } func TestAssignments(t *testing.T) { - run_testcases(t, assignTestCases) + runTestCases(t, assignTestCases) } diff --git a/pkg/vm/tests/binary_expr_test.go b/pkg/vm/tests/binary_expr_test.go index fd24c2e37..257132bff 100644 --- a/pkg/vm/tests/binary_expr_test.go +++ b/pkg/vm/tests/binary_expr_test.go @@ -189,5 +189,5 @@ var binaryExprTestCases = []testCase{ } func TestBinaryExprs(t *testing.T) { - run_testcases(t, binaryExprTestCases) + runTestCases(t, binaryExprTestCases) } diff --git a/pkg/vm/tests/numeric_test.go b/pkg/vm/tests/numeric_test.go index 53fc3e722..d2589dbf5 100644 --- a/pkg/vm/tests/numeric_test.go +++ b/pkg/vm/tests/numeric_test.go @@ -21,5 +21,5 @@ var numericTestCases = []testCase{ } func TestNumericExprs(t *testing.T) { - run_testcases(t, numericTestCases) + runTestCases(t, numericTestCases) } diff --git a/pkg/vm/tests/struct_test.go b/pkg/vm/tests/struct_test.go index e3de28f91..d739a935f 100644 --- a/pkg/vm/tests/struct_test.go +++ b/pkg/vm/tests/struct_test.go @@ -240,5 +240,5 @@ var structTestCases = []testCase{ } func TestStructs(t *testing.T) { - run_testcases(t, structTestCases) + runTestCases(t, structTestCases) } diff --git a/pkg/vm/tests/vm_test.go b/pkg/vm/tests/vm_test.go index 885e3ebc6..b91b8bb75 100644 --- a/pkg/vm/tests/vm_test.go +++ b/pkg/vm/tests/vm_test.go @@ -16,7 +16,7 @@ type testCase struct { result interface{} } -func run_testcases(t *testing.T, tcases []testCase) { +func runTestCases(t *testing.T, tcases []testCase) { for _, tcase := range tcases { t.Run(tcase.name, func(t *testing.T) { eval(t, tcase.src, tcase.result) }) }