Branch Coverage

blib/lib/PAGI/Endpoint/Router.pm
Criterion Covered Total %
branch 21 32 65.6


line true false branch
39 1 22 builtin::blessed($class) ? :
113 27 19 if (@args == 2 and ref $args[0] eq 'ARRAY') { }
19 0 elsif (@args == 1) { }
154 37 0 unless (ref $handler)
155 0 37 unless my $method = $endpoint->can($handler)
160 0 19 unless is_response($res)
169 0 0 unless is_response($res)
180 1 3 if @$middleware
197 3 0 unless (ref $handler)
199 0 3 unless my $method = $endpoint->can($method_name)
229 1 3 if @$middleware
246 3 0 unless (ref $handler)
248 0 3 unless my $method = $endpoint->can($method_name)
279 25 1 unless (ref $mw)
280 0 25 unless my $method = $endpoint->can($mw)
285 1 11 unless is_response($res)