JM-WechatMini/utils/ast/ast_gorm_test.go
2023-11-02 04:34:46 +08:00

19 lines
366 B
Go

package ast
import (
"miniapp/global"
"miniapp/model/example"
"testing"
)
const A = 123
func TestAddRegisterTablesAst(t *testing.T) {
AddRegisterTablesAst("D:\\gin-vue-admin\\server.exe.exe\\utils\\ast_test.go", "Register", "test", "testDB", "testModel")
}
func Register() {
test := global.GetGlobalDBByDBName("test")
test.AutoMigrate(example.ExaFile{})
}