MCPcopy Create free account
hub / github.com/stretchr/testify / CommentWithoutT

Method CommentWithoutT

_codegen/main.go:296–300  ·  view source on GitHub ↗
(receiver string)

Source from the content-addressed store, hash-verified

294}
295
296func (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.
303var headerTemplate = `// Code generated with github.com/stretchr/testify/_codegen; DO NOT EDIT.

Callers

nothing calls this directly

Calls 1

CommentMethod · 0.95

Tested by

no test coverage detected