mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-24 12:27:17 +00:00
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()
|
|
}
|
|
}
|