(receiver string)
| 294 | } |
| 295 | |
| 296 | func (f *testFunc) CommentWithoutT(receiver string) string { |
| 297 | search := fmt.Sprintf("assert.%s(t, ", f.DocInfo.Name) |
| 298 | replace := fmt.Sprintf("%s.%s(", receiver, f.DocInfo.Name) |
| 299 | return strings.Replace(f.Comment(), search, replace, -1) |
| 300 | } |
| 301 | |
| 302 | // Standard header https://go.dev/s/generatedcode. |
| 303 | var headerTemplate = `// Code generated with github.com/stretchr/testify/_codegen; DO NOT EDIT. |