Branch Coverage

blib/lib/Router/PathInfo/Controller.pm
Criterion Covered Total %
branch 45 58 77.5


line true false branch
138 0 14 unless ($args{$_})
143 2 0 ref $args{'methods'} eq 'ARRAY' ? :
2 5 $args{'methods'} ? :
144 2 5 $args{'methods'}[0] ? :
147 1 6 if ref $args{'match_callback'} eq 'CODE'
167 0 20 if ($1 or $2) { }
6 14 elsif ($5) { }
1 13 elsif ($8) { }
5 8 elsif ($11) { }
8 0 elsif ($14) { }
180 1 5 if $4
185 1 0 if $7
189 1 4 if $10
193 0 8 if $13
202 60 0 if (not $$_{'match'} or $$_{'match'}[3] >= $methods_weight)
204 24 36 keys %$named_segment ? :
218 14 8 if (defined $exactly)
219 13 1 $size_el ? :
220 14 0 if $ret
223 1 7 if ($$reserch{'regexp'})
225 1 0 if ($segment =~ /$$self{'re_compile'}{$_}/)
226 0 1 $size_el ? :
227 1 0 if $ret
232 5 2 if ($$reserch{'default'})
233 0 5 $size_el ? :
234 5 0 if $ret
267 7 2 if ($match) { }
272 5 2 if (not $$match[1]) { }
277 1 6 if $$match[2]