5 Star 29 Fork 12

楠木 / etherscan-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
error_wrap_test.go 425 Bytes
一键复制 编辑 原始数据 按行查看 历史
楠木 提交于 2018-08-04 23:27 . [dev] add test case
/*
* Copyright (c) 2018 LI Zhennan
*
* Use of this work is governed by a MIT License.
* You may find a license copy in project root.
*/
package etherscan
import (
"errors"
"testing"
)
func Test_wrapfErr(t *testing.T) {
const ans = "status 100: continue test"
err := errors.New("continue test")
err = wrapfErr(err, "%s %v", "status", "100")
if err.Error() != ans {
t.Fatalf("got %v, want %s", err, ans)
}
}
Go
1
https://gitee.com/nanmu42/etherscan-api.git
git@gitee.com:nanmu42/etherscan-api.git
nanmu42
etherscan-api
etherscan-api
master

搜索帮助