diff --git a/assert/assertions.go b/assert/assertions.go index 6843d42..eb0d8e0 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -1874,6 +1874,9 @@ type CollectT struct { errors []error } +// Helper is like [testing.T.Helper] but does nothing. +func (CollectT) Helper() {} + // Errorf collects the error. func (c *CollectT) Errorf(format string, args ...interface{}) { c.errors = append(c.errors, fmt.Errorf(format, args...))