From 791f4bae86af51d91d0f3a9bc565671288688884 Mon Sep 17 00:00:00 2001 From: ItsMeSamey <92444995+ItsMeSamey@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:58:19 +0530 Subject: [PATCH] Added returnErr test make sure returnErr works with nil error --- bind_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bind_test.go b/bind_test.go index aa00e191ca..9cbb51c46c 100644 --- a/bind_test.go +++ b/bind_test.go @@ -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()