Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
4
Newest
 Editor
Impact
~52 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Dec
4
comment Best Possible Way To Write Unit Tests For HTTP Middleware
I do own that function. But, the fact its: its a middleware I am writing which is injected by the third party library. Its like a plugin for a platform, where you will have to write your plugin method in some specific format and only then it get executed the the platform. Did I able to make it clear?
Dec
4
comment Best Possible Way To Write Unit Tests For HTTP Middleware
On thing: its not possible to change the function format for the middleware. That's getting called from third party(goproxy) and its really how goproxy expects it to be like(with 1 ctx argument). So, not saying for this specific domain, it might be happen in other cases, where its not possible to just change the function signature, then what would be your approach?
Dec
4
awarded  Editor
Dec
4
revised Best Possible Way To Write Unit Tests For HTTP Middleware
added 119 characters in body
Dec
4
asked Best Possible Way To Write Unit Tests For HTTP Middleware
Jan
24
awarded  Autobiographer
Dec
3
awarded  Student
Nov
21
awarded  Teacher
Nov
21
answered Should I ask/tell my boss before freelancing?