Condition Coverage

blib/lib/Config/Model/AnyId.pm
Criterion Covered Total %
condition 61 92 66.3


and 3 conditions

line !l l&&!r l&&r condition
165 355 156 0 $self->cargo->{'type'} eq "node" and not $self->cargo->{'config_class_name'}
257 517 0 25 defined $self->{'duplicates'} and defined $self->{'cargo'}
517 24 1 defined $self->{'duplicates'} and defined $self->{'cargo'} and $self->{'cargo'}{'type'} ne "leaf"
267 517 23 1 defined $self->{'duplicates'} and not $self->{'duplicates'} =~ /^$ok_dup$/u
514 260 0 0 defined $self->{'max_nb'} and $nb > $self->{'max_nb'}
564 391 640 0 $self->{'index_type'} eq "integer" and $idx =~ /\D/u
984 45 2 defined $self->{'max_index'} and $idx > $self->{'max_index'}
1012 16 1 defined $self->{'min_index'} and $idx < $self->{'min_index'}
578 1010 14 8 defined $self->{'max_nb'} and $new_nb > $self->{'max_nb'}
588 1029 0 3 @warn and not $silent
1029 0 3 @warn and not $silent and $check ne "no"
722 3610 0 65 defined $self->{'convert_sub'} and defined $idx
776 0 3 0 $get_obj || $obj->get_type ne 'leaf' and not defined $new_path
792 0 3 4 $ok and $self->{'cargo'}{'type'} eq "leaf"

or 2 conditions

line l !l condition
163 0 0 'Missing cargo->type parameter for element ' . $self->{'element_name'} || 'unknown'
166 0 0 'Missing cargo->config_class_name parameter for element ' . $self->element_name || 'unknown'
297 3671 0 shift() // die("missing index")
357 5 6 $args{'check'} || 'yes'
495 0 421 $args{'silent'} || 0
496 11 410 $args{'fix'} || 0
532 161 0 $self->{'content_error_list'} // []
542 0 1032 $args{'silent'} || 0
543 918 114 $args{'check'} || 'yes'
756 1 2 delete $args{'get_obj'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
170 0 0 511 $self->{'cargo'}{'type'} eq "hash" or $self->{'cargo'}{'type'} eq "list"
227 308 236 0 $self->{'index_type'} eq "integer" or $self->{'index_type'} eq "string"
351 11 0 0 $args{'param'} || croak('safe_typed_grab: missing param')
497 16 405 0 $args{'logger'} || $logger
544 35 0 997 $args{'fix'} // ($check eq "fix" ? 1 : 0)
730 2748 9 918 $self->_defined($idx) or $check eq "no"
734 3663 0 12 $ok or $check eq "no"
771 3 0 0 $self->exists($item) or $autoadd
776 1 2 0 $get_obj || $obj->get_type ne 'leaf'
862 412 0 2 $ok or $check eq "no"