mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-06 01:07:08 +08:00
additional test code
This commit is contained in:
@@ -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}}"
|
||||
|
Reference in New Issue
Block a user