Skip to content

Commit 8f73f15

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 e2ad959 commit 8f73f15

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
@@ -2008,6 +2008,9 @@ type CollectT struct {
20082008
errors []error
20092009
}
20102010

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

0 commit comments

Comments
 (0)