Description

In handler function, I write the code c.Error(xxxx).

I want to test the function, but r.serveHTTP(w, c.Request) doesn't affect the test gin context c, error array of c.Errors is empty.

in my thought, call the function directly like handlefunc(c) may work,but i can not pass the request params to the context.

Is it possible to pass params to gin context for test?