From e1b54cfeecd0a4f89ceb7bcbe643e8d6794e7659 Mon Sep 17 00:00:00 2001 From: Adam Luzsi Date: Mon, 15 Apr 2024 20:24:22 +0200 Subject: [PATCH] refact --- assert/pkgfunc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert/pkgfunc.go b/assert/pkgfunc.go index a454e48..68cdf3c 100644 --- a/assert/pkgfunc.go +++ b/assert/pkgfunc.go @@ -129,7 +129,7 @@ func Eventually[T time.Duration | int](tb testing.TB, durationOrCount T, blk fun // OneOf function checks a list of values and matches an expectation against each element of the list. // If any of the elements pass the assertion, then the assertion helper function does not fail the test. -func OneOf[V any](tb testing.TB, vs []V, blk func(it It, got V), msg ...Message) { +func OneOf[V any](tb testing.TB, vs []V, blk func(t It, got V), msg ...Message) { tb.Helper() Must(tb).AnyOf(func(a *A) { a.name = "OneOf"