From da9948136f4411c66bd51e4ac3ef53ba8f0ed582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 11 Jul 2023 22:17:10 +0200 Subject: [PATCH] assert.CollectT: add Helper() method Add Helper() method to CollectT like testing.T as we intend to add Helper() to the assert.TestingT interface. --- assert/assertions.go | 3 +++ 1 file changed, 3 insertions(+) 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...))