mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
github.com/stretchr/testify is a useful library for doing assertion in tests. It makes assertions in test more less verbose and more comfortable to read and use.
6 lines
139 B
Cheetah
6 lines
139 B
Cheetah
{{.Comment}}
|
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
|
if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
|
|
t.FailNow()
|
|
}
|
|
}
|