Skip to content

Commit d6d675d

Browse files
committed
doc: update readme.
1 parent e734186 commit d6d675d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ func TestExample(t *testing.T) {
236236

237237
> Since v0.1.0
238238
239+
- [`PanicOf`](https://pkg.go.dev/github.com/ghosind/go-assert#Assertion.PanicOf): assert the function will panic by the expected error.
240+
241+
> Since v0.1.0
242+
243+
- [`NotPanicOf`](https://pkg.go.dev/github.com/ghosind/go-assert#Assertion.NotPanicOf): assert the function will not panic, or it will panic but it is not by the unexpected error.
244+
245+
> Since v0.1.0
246+
239247
## Custom Error Message
240248

241249
You can customize the error message if you don't like the default message. Every assertion function accepts an optional message arguments list, and the first argument is the argument is the format string of the custom message.

0 commit comments

Comments
 (0)