catface_backend_go/test/model_2_test.go

17 lines
187 B
Go
Raw Normal View History

2024-11-15 15:05:54 +08:00
package test
import (
"catface/app/model"
"testing"
)
func TestDocModel(t *testing.T) {
Init()
doc := model.Doc{}
err := DB.AutoMigrate(&doc)
if err != nil {
t.Error(err)
}
}