This commit is contained in:
Joe
2026-01-16 15:49:34 +08:00
commit 550d3e1f42
380 changed files with 62024 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package unit
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
// 单元测试不需要完整的应用初始化
// 如果需要数据库等资源,请在 tests/feature 中编写功能测试
// 执行测试
exit := m.Run()
os.Exit(exit)
}