forked from cerc-io/plugeth
5d895db2fd
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()
|
|
}
|
|
}
|