1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| package ast
|
| import (
| "github.com/flipped-aurora/gin-vue-admin/server/global"
| "github.com/flipped-aurora/gin-vue-admin/server/model/example"
| "testing"
| )
|
| const A = 123
|
| func TestAddRegisterTablesAst(t *testing.T) {
| AddRegisterTablesAst("D:\\gin-vue-admin\\server\\utils\\ast_test.go", "Register", "test", "testDB", "testModel")
| }
|
| func Register() {
| test := global.GetGlobalDBByDBName("test")
| test.AutoMigrate(example.ExaFile{})
| }
|
|