awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.
Apache License 2.0
1.04k stars 197 forks source link

Support for gin.CreateTestContext for unit testing #59

Open funfoolsuzi opened 4 years ago

funfoolsuzi commented 4 years ago

I wonder if there can be a way to ingest *http.ResponseRecorder or gin.Context created by gin.CreateTestContext so that we can test handler in a bigger scope.

estebane-frb commented 2 years ago

Hi there, I am running into this same issue but with Gorilla. Wondering what you ended up doing in order to generate a dummy context for unit testing. Thanks!