additional test code

This commit is contained in:
zhuyasen
2023-10-15 18:55:58 +08:00
parent 949cf3b48e
commit 678e262bd0
17 changed files with 620 additions and 74 deletions

View File

@@ -2,10 +2,10 @@ package parser
import (
"fmt"
"github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql"
"github.com/blastrain/vitess-sqlparser/tidbparser/dependency/types"
"testing"
"github.com/blastrain/vitess-sqlparser/tidbparser/dependency/mysql"
"github.com/blastrain/vitess-sqlparser/tidbparser/dependency/types"
"github.com/stretchr/testify/assert"
)
@@ -154,6 +154,8 @@ func TestGetTableInfo(t *testing.T) {
}
func Test_initTemplate(t *testing.T) {
initTemplate()
defer func() { recover() }()
modelStructTmplRaw = "{{if .foo}}"
modelTmplRaw = "{{if .foo}}"