Skip to content

Commit

Permalink
Update test/elli_metrics_middleware.erl
Browse files Browse the repository at this point in the history
Add no-op {pre,post}process callbacks for more coverage.
  • Loading branch information
yurrriq committed Nov 9, 2016
1 parent d87974b commit 9304cf2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/elli_metrics_middleware.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-module(elli_metrics_middleware).
-export([init/2, handle/2, handle_event/3]).
-export([init/2, preprocess/2, handle/2, postprocess/3, handle_event/3]).
-behaviour(elli_handler).


Expand All @@ -10,9 +10,15 @@
init(_Req, _Args) ->
ignore.

preprocess(Req, _Args) ->
Req.

handle(_Req, _Args) ->
ignore.

postprocess(_Req, Res, _Args) ->
Res.


%%
%% ELLI EVENT CALLBACKS
Expand Down

0 comments on commit 9304cf2

Please sign in to comment.