Skip to content

Commit

Permalink
Added returnErr test
Browse files Browse the repository at this point in the history
make sure returnErr works with nil error
  • Loading branch information
ItsMeSamey authored Oct 18, 2024
1 parent 0fa70ab commit 791f4ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bind_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ import (

const helloWorld = "hello world"

// go test -run Test_returnErr -v
func Test_returnErr(t *testing.T) {
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})

err := c.Bind().Must().returnErr(nil)
require.Equal(t, nil, err)
}

// go test -run Test_Bind_Query -v
func Test_Bind_Query(t *testing.T) {
t.Parallel()
Expand Down

0 comments on commit 791f4ba

Please sign in to comment.