Skip to content

Commit

Permalink
Added error assertion function to test package
Browse files Browse the repository at this point in the history
  • Loading branch information
ccarstens authored and shoenig committed Jun 5, 2024
1 parent e86c733 commit 523e55a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 523e55a

Please sign in to comment.