Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions ast/corpus_ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,27 @@
package ast

import (
"flag"
"fmt"
"os"
"testing"

debugcommon "ballerina-lang-go/common"
"ballerina-lang-go/context"
"ballerina-lang-go/model"
"ballerina-lang-go/parser"
"ballerina-lang-go/semtypes"
"ballerina-lang-go/test_util"
"flag"
"fmt"
"testing"

"github.com/sergi/go-diff/diffmatchpatch"
)

func TestASTGeneration(t *testing.T) {
func TestMain(m *testing.M) {
flag.Parse()
os.Exit(m.Run())
}

func TestASTGeneration(t *testing.T) {
testPairs := test_util.GetValidTests(t, test_util.AST)

for _, testPair := range testPairs {
Expand Down Expand Up @@ -114,8 +119,6 @@ func (v *walkTestVisitor) VisitTypeData(typeData *model.TypeData) Visitor {
}

func TestWalkTraversal(t *testing.T) {
flag.Parse()

testPairs := test_util.GetValidTests(t, test_util.AST)

for _, testPair := range testPairs {
Expand Down
Loading