Condition Coverage

blib/lib/Catalyst/DispatchType/Chained.pm
Criterion Covered Total %
condition 43 56 76.7


and 3 conditions

line !l l&&!r l&&r condition
125 0 1 10 defined $pp->[0] and length $pp->[0]
218 317 160 80 $parts and @$parts
287 336 239 60 $actions and !$best_action || $#$action_parts < $#{$$best_action{'parts'};} || $#$action_parts == $#{$$best_action{'parts'};} && $#$captures < $#{$$best_action{'captures'};} && $n_pathparts > $best_action->{'n_pathparts'}
316 21 0 13 not @parts and defined $args_attr
0 11 2 $args_count eq 0 and $c->config->{'use_chained_args_0_special_case'} || 0 || (exists $best_action->{'args_count'} && defined $best_action->{'args_count'} ? $best_action->{'args_count'} ne 0 : 1)
21 11 2 not @parts and defined $args_attr and ($args_count eq 0 and $c->config->{'use_chained_args_0_special_case'} || 0 || (exists $best_action->{'args_count'} && defined $best_action->{'args_count'} ? $best_action->{'args_count'} ne 0 : 1))
379 1828 243 10223 @path_part == 1 and defined $path_part[0]
402 5609 6684 0 exists $action->attributes->{'Args'} and exists $action->attributes->{'CaptureArgs'}
427 4 0 51 $action->attributes->{'Chained'} and not $action->attributes->{'CaptureArgs'}
445 0 34 88 defined $pp->[0] and length $pp->[0]
471 0 71 97 $action->attributes and $action->attributes->{'Chained'}

or 2 conditions

line l !l condition
174 5 0 join('/', '', @display_parts) || '/'
266 482 194 $action->number_of_captures || 0
373 7250 5044 $self->_children_of->{$chained_to} ||= {}
398 2017 10276 $children->{$encoded_part} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
134 0 0 0 $parents[0] || $endpoint
287 290 4 5 !$best_action || $#$action_parts < $#{$$best_action{'parts'};} || $#$action_parts == $#{$$best_action{'parts'};} && $#$captures < $#{$$best_action{'captures'};} && $n_pathparts > $best_action->{'n_pathparts'}
316 255 0 34 not $best_action or @parts < @{$best_action->{'parts'};}
0 2 11 $c->config->{'use_chained_args_0_special_case'} || 0 || (exists $best_action->{'args_count'} && defined $best_action->{'args_count'} ? $best_action->{'args_count'} ne 0 : 1)
255 7 27 not $best_action or @parts < @{$best_action->{'parts'};} or not @parts and defined $args_attr and ($args_count eq 0 and $c->config->{'use_chained_args_0_special_case'} || 0 || (exists $best_action->{'args_count'} && defined $best_action->{'args_count'} ? $best_action->{'args_count'} ne 0 : 1))