mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-10-04 04:31:00 +00:00
testify makes most bog-standard test checks much easier to read and maintain, and is quite widely used. It wasn't really well known back when go-mtree was first written, but the migration is fairly straight-forward for most tests. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
6 lines
217 B
Cheetah
6 lines
217 B
Cheetah
{{ replace .Comment "assert." "require."}}
|
|
func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
|
|
if h, ok := t.(tHelper); ok { h.Helper() }
|
|
if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
|
|
t.FailNow()
|
|
}
|