File: require.go.tmpl

package info (click to toggle)
golang-testify 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie, trixie-proposed-updates
  • size: 920 kB
  • sloc: makefile: 2
file content (6 lines) | stat: -rw-r--r-- 217 bytes parent folder | download
1
2
3
4
5
6
{{ 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()
}