1 Star 0 Fork 0

大陆 / mylog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
log_test.go 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
大陆 提交于 2020-04-26 15:26 . 1111
/*
@Time : 2020/4/10 10:17
@Author : Z.D.L
@File : log_test
@Software: GoLand
┴┬┴┬/ ̄\_/ ̄\
┬┴┬┴▏  ▏▔▔▔▔\
┴┬┴/\ /      ﹨
┬┴∕       /   )
┴┬▏        ●  ▏
┬┴▏           ▔█
┴◢██◣       \__/
┬█████◣       /
┴█████████████◣
◢██████████████▆▄
◢██████████████▆▄
█◤◢██◣◥█████████◤\
◥◢████ ████████◤   \
┴█████ ██████◤      ﹨
┬│   │█████◤        ▏
┴│   │              ▏
┬∕   ∕    /▔▔▔\     ∕
*∕___/﹨   ∕      \  /\
┬┴┬┴┬┴\    \_     ﹨/  ﹨
┴┬┴┬┴┬┴ \___\     ﹨/▔\﹨/▔\
▲△▲▲╓╥╥╥╥╥╥╥╥\   ∕  /▔﹨ /▔﹨
*/
package mylog
import (
"testing"
"github.com/gogf/gf/os/glog"
"github.com/gogf/gf/test/gtest"
)
func TestSetDebugMode(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
glog.SetDebug(true)
})
}
func TestDebug(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
Debug("11111")
})
select {
}
}
func TestPanic(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
Panic("hahah")
})
select {
}
}
Go
1
https://gitee.com/sky_big/mylog.git
git@gitee.com:sky_big/mylog.git
sky_big
mylog
mylog
master

搜索帮助