Branch Coverage

blib/lib/Catalyst/DispatchType/Chained.pm
Criterion Covered Total %
branch 54 78 69.2


line true false branch
44 0 0 unless $$self{'endpoints'}
55 0 0 defined $args ? :
60 0 0 if (my $cap = $curr->attributes->{'CaptureArgs'})
63 0 0 if (my $pp = $curr->attributes->{'PartPath'})
64 0 0 if defined $$pp[0] and length $$pp[0]
69 0 0 if $curr
71 0 0 unless $parent eq '/'
75 0 0 if (my $cap = $p->attributes->{'CaptureArgs'})
78 0 0 unless ($p eq $parents[0])
83 0 0 @rows ? :
100 123 664 if @{$c->req->args;}
106 424 240 unless $chain
128 2 1074 unless $children
134 16646 428 if (length $try_part)
138 16168 478 unless $try_part eq join('/', splice(@parts, 0, scalar @{[split(m[/], $try_part, 0)];}))
143 414 678 if (my $capture_attr = $action->attributes->{'CaptureArgs'}) { }
146 2 412 unless @parts >= $$capture_attr[0]
158 234 178 if ($actions)
164 438 240 unless $action->match($c)
183 17915 3423 unless $action->attributes->{'Chained'}
185 17915 3423 unless @chained_attr
187 0 3423 if (@chained_attr > 2)
195 3017 406 if (defined $parent and length $parent) { }
196 180 2837 if ($parent eq '.') { }
1172 1665 elsif (not $parent =~ m[^/]) { }
199 1127 45 if ($action->namespace) { }
213 497 2926 unless $action->attributes->{'PathPart'}
217 2836 587 if (@path_part == 1 and defined $path_part[0]) { }
0 587 elsif (@path_part > 1) { }
225 1 3422 if ($part =~ m[^/])
237 1845 1577 unless ($action->attributes->{'CaptureArgs'})
254 6 17 unless $action->attributes->{'Chained'} and not $action->attributes->{'CaptureArgs'}
262 20 17 if (my $cap = $curr->attributes->{'CaptureArgs'})
263 2 18 unless @captures >= $$cap[0]
264 14 4 if ($$cap[0])
268 35 0 if (my $pp = $curr->attributes->{'PartPath'})
269 28 7 if defined $$pp[0] and length $$pp[0]
276 0 15 unless $parent eq '/'
278 2 13 if @captures