Branch Coverage

blib/lib/PAGI/Endpoint/Router.pm
Criterion Covered Total %
branch 17 28 60.7


line true false branch
36 1 8 builtin::blessed($class) ? :
105 3 9 @wrapped_mw ? :
113 3 13 if (@args == 2 and ref $args[0] eq 'ARRAY') { }
13 0 elsif (@args == 1) { }
130 12 0 unless (ref $handler)
132 0 12 unless my $method = $endpoint->can($method_name)
169 0 2 @wrapped_mw ? :
179 2 0 unless (ref $handler)
181 0 2 unless my $method = $endpoint->can($method_name)
213 0 2 @wrapped_mw ? :
223 2 0 unless (ref $handler)
225 0 2 unless my $method = $endpoint->can($method_name)
256 4 0 unless (ref $mw)
257 0 4 unless my $method = $endpoint->can($mw)