mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01: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.
7 lines
139 B
Cheetah
7 lines
139 B
Cheetah
{{.Comment}}
|
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
|
if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) {
|
|
t.FailNow()
|
|
}
|
|
}
|