From 523e55a85cdd93df767720beb25161f5afab6e05 Mon Sep 17 00:00:00 2001 From: Cornelius Carstens Date: Mon, 3 Jun 2024 23:58:34 +0200 Subject: [PATCH] Added error assertion function to test package --- test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.go b/test.go index e7a53b2..c6d711b 100644 --- a/test.go +++ b/test.go @@ -19,6 +19,8 @@ import ( "github.com/shoenig/test/wait" ) +type ErrorAssertionFunc func(t T, err error, settings ...Setting) + // Nil asserts a is nil. func Nil(t T, a any, settings ...Setting) { t.Helper()