From 2ab33d6f3babd0a8428a085e9d5c2112370aabc6 Mon Sep 17 00:00:00 2001 From: Fahim Bagar Date: Tue, 5 Mar 2024 12:12:02 +0700 Subject: [PATCH] Change type --- assert/assertions_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assert/assertions_test.go b/assert/assertions_test.go index 66c6e441b..0ae36cd92 100644 --- a/assert/assertions_test.go +++ b/assert/assertions_test.go @@ -2794,7 +2794,7 @@ func ExamplePanicAssertionFunc() { tests := []struct { name string - panicFn func() + panicFn PanicTestFunc assertion PanicAssertionFunc }{ {"with panic", func() { panic(nil) }, Panics}, @@ -2811,7 +2811,7 @@ func ExamplePanicAssertionFunc() { func TestPanicAssertionFunc(t *testing.T) { tests := []struct { name string - panicFn func() + panicFn PanicTestFunc assertion PanicAssertionFunc }{ {"not panic", func() {}, NotPanics},