1 Star 0 Fork 0

ryancartoon/sensu-go

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
errors.go 324 Bytes
Copy Edit Raw Blame History
package testutil
import "testing"
// CompareError ensures that the provided err is expected
func CompareError(err error, expected bool, t *testing.T) {
t.Helper()
if expected && err == nil {
t.Fatal("expected error, got none")
} else if !expected && err != nil {
t.Fatalf("unexpected error: %s", err.Error())
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ryancartoon/sensu-go.git
git@gitee.com:ryancartoon/sensu-go.git
ryancartoon
sensu-go
sensu-go
v5.10.1

Search