package
Version:
v1.3.5
Opens a new window with list of versions in this module.
Published: Nov 11, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package testapp 提供使用 app 全局访问方式的测试数据库环境。
NewDB 使用调用方注册的驱动打开测试数据库、迁移传入的 Model,并在测试结束时自动释放资源。
使用 app.DB 的测试依赖进程级数据库状态,不得并行运行。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.