mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-15 05:40:25 +08:00
refactor: 新增base.Repo与base.App,重构repo与app层代码
This commit is contained in:
11
server/pkg/biz/assert_test.go
Normal file
11
server/pkg/biz/assert_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestErrIsNil(t *testing.T) {
|
||||
// ErrIsNil(NewBizErr("xxx is error"))
|
||||
// ErrIsNil(NewBizErr("xxx is error"), "格式错误")
|
||||
// ErrIsNil(NewBizErr("xxx is error"), "格式错误: %s, %d", "xxx", 12)
|
||||
}
|
||||
Reference in New Issue
Block a user