1 Star 0 Fork 0

CaptialSTeam/ubdframe

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
source.go 773 Bytes
一键复制 编辑 原始数据 按行查看 历史
sage 提交于 2025-05-21 17:09 +08:00 . support comag
package tests
import (
"gitee.com/captials-team/ubdframe/src/common"
"gitee.com/captials-team/ubdframe/src/domain/configstc"
v1log "gitee.com/captials-team/ubdframe/src/pkg/logs"
"go.uber.org/dig"
"testing"
)
var TestingDBConfig = configstc.DBConfig{
DbHost: "192.168.149.128",
DbPort: "3306",
DbUser: "root",
DbPassword: "root",
DbName: "db_ubd_frame",
TablePrefix: "test_",
}
var TestingApiServer = configstc.ServerConfig{
Enable: true,
ServerBindAddr: "",
Port: 10000,
}
func NewDi(t *testing.T) *dig.Container {
di := dig.New()
common.ErrPanic(di.Provide(func() *dig.Container {
return di
}))
common.ErrPanic(di.Provide(func() v1log.ILog {
return v1log.NewTestingLog(t, v1log.DebugLog)
}))
return di
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/captials-team/ubdframe.git
git@gitee.com:captials-team/ubdframe.git
captials-team
ubdframe
ubdframe
v1.0.3

搜索帮助