mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Always dialyze tests and fix some cowboy_req specs
This commit is contained in:
parent
07078eb47b
commit
a8335c63df
11 changed files with 25 additions and 11 deletions
|
@ -4,10 +4,12 @@
|
|||
|
||||
-export([init/2]).
|
||||
|
||||
-spec init(_, _) -> no_return().
|
||||
init(Req, _Opts) ->
|
||||
#{'case' := Case} = cowboy_req:match_qs(['case'], Req),
|
||||
case_init(Case, Req).
|
||||
|
||||
-spec case_init(_, _) -> no_return().
|
||||
case_init(<<"init_before_reply">> = Case, _Req) ->
|
||||
ct_helper_error_h:ignore(?MODULE, case_init, 2),
|
||||
error(Case);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue