Skip to content

Commit 8b93e11

Browse files
committedJul 6, 2023
Use type alias
1 parent 1a0f4bc commit 8b93e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎assert/assertions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type ErrorAssertionFunc func(TestingT, error, ...interface{}) bool
4747

4848
// PanicAssertionFunc is a common function prototype when validating a panic value. Can be useful
4949
// for table driven tests.
50-
type PanicAssertionFunc func(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool
50+
type PanicAssertionFunc = func(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool
5151

5252
// Comparison is a custom function that returns true on success and false on failure
5353
type Comparison func() (success bool)

0 commit comments

Comments
 (0)