Skip to content

Commit 5c4ea9d

Browse files
committed
assert.CollectT: add Helper() method
Add Helper() method to CollectT like testing.T as we intend to add Helper() to the assert.TestingT interface.
1 parent 24b1abb commit 5c4ea9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assert/assertions.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,9 @@ type CollectT struct {
20072007
errors []error
20082008
}
20092009

2010+
// Helper is like [testing.T.Helper] but does nothing.
2011+
func (CollectT) Helper() {}
2012+
20102013
// Errorf collects the error.
20112014
func (c *CollectT) Errorf(format string, args ...interface{}) {
20122015
c.errors = append(c.errors, fmt.Errorf(format, args...))

0 commit comments

Comments
 (0)