Branch Coverage

blib/lib/PAGI/Endpoint/Router.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
39 1 19 builtin::blessed($class) ? :
63 20 8 if (builtin::blessed($res) and $res->can("respond"))
117 20 13 @wrapped_mw ? :
125 21 19 if (@args == 2 and ref $args[0] eq 'ARRAY') { }
19 0 elsif (@args == 1) { }
143 33 0 unless (ref $handler)
145 0 33 unless my $method = $endpoint->can($method_name)
155 0 18 unless builtin::blessed($res) and $res->can("respond")
169 0 0 unless builtin::blessed($res) and $res->can("respond")
182 0 3 @wrapped_mw ? :
193 3 0 unless (ref $handler)
195 0 3 unless my $method = $endpoint->can($method_name)
227 0 3 @wrapped_mw ? :
238 3 0 unless (ref $handler)
240 0 3 unless my $method = $endpoint->can($method_name)
272 21 1 unless (ref $mw)
273 0 21 unless my $method = $endpoint->can($mw)
284 1 10 unless builtin::blessed($res) and $res->can("respond")