cowboy
cowboy copied to clipboard
match_qs crashes with badkey error
cowboy_req:match_qs
for constraints given as {Key, Constraint} crashes with badkey
error if key is missing.
Expected behaviour is to crash with required
error.
Sounds good. Please add a test.
Hello @essen @farhadi . Is this still an issue? Maybe I could continue and add the tests?
Yes feel free to add a test. Tickets that are not under the 2.11 milestone you can freely work on without problem.
Yes feel free to add a test. Tickets that are not under the 2.11 milestone you can freely work on without problem.
sounds good
one last quesiton, @essen . Isse some references mentioning unit tests. I couldn't see where they are. Could you give me a clue?
This match_qs seems to be suitable for unit tests. There are some comments in the code saying that.
Unit tests are within the module of the function. But for this it should have a CT test.
Companion PR got merged. I referenced the original author in the commit message. Closing, thanks!