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

Struct errorsCapturingT

assert/assertions_test.go:2980–2982  ·  view source on GitHub ↗

errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.

Source from the content-addressed store, hash-verified

2978
2979// errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.
2980type errorsCapturingT struct {
2981 errors []error
2982}
2983
2984func (t *errorsCapturingT) Errorf(format string, args ...interface{}) {
2985 t.errors = append(t.errors, fmt.Errorf(format, args...))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected