Skip to content

Commit

Permalink
Update TestAssertPanic
Browse files Browse the repository at this point in the history
  • Loading branch information
sbpann committed Jun 8, 2024
1 parent 5e33436 commit 42c207e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/test.util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
)

func TestAssertPanic(t *testing.T) {
AssertPanic(t, func() {}, nil)
AssertPanic(t, func() { panic("") }, "")
AssertPanic(t, func() {
// Do nothing
}, nil)
AssertPanic(t, func() { panic("Panic!") }, "Panic!")
}

0 comments on commit 42c207e

Please sign in to comment.