package main import ( "testing" _ "github.com/go-sql-driver/mysql" ) func TestXMain(t *testing.T) { testGenDir = "../" + testGenDir GenAllModels(testGenDir, TableNameComment{ Name: "FsFont", Comment: "测试", }) // Now you can use the generated GORM model to interact with the database }