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 165 80 $parts and @$parts
287 346 248 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 10235 @path_part == 1 and defined $path_part[0]
402 5616 6689 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 483 212 $action->number_of_captures || 0
373 7254 5052 $self->_children_of->{$chained_to} ||= {}
398 2018 10287 $children->{$encoded_part} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
134 0 0 0 $parents[0] || $endpoint
287 299 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 260 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)
260 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))