1 Star 0 Fork 0

liwen_test_sync_group/endly

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
error_test.go 329 Bytes
一键复制 编辑 原始数据 按行查看 历史
Raymond Zhao 提交于 2020-05-28 10:05 +08:00 . Fix deployment service max minor version
package endly
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func TestError_Error(t *testing.T) {
var e = NewError("s1", "a1", fmt.Errorf("test error 1"))
assert.Equal(t, "test error 1 at s1.a1 ", e.Error())
var e1 = NewError("s2", "a2", e)
assert.Equal(t, "test error 1 at s2.a2/s1.a1 ", e1.Error())
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liwen_test_sync_group/endly.git
git@gitee.com:liwen_test_sync_group/endly.git
liwen_test_sync_group
endly
endly
master

搜索帮助