Condition Coverage

blib/lib/Data/Hash/Patch/Smart/Engine.pm
Criterion Covered Total %
condition 23 57 40.3


and 3 conditions

line !l l&&!r l&&r condition
98 0 2 3 defined $next and $next =~ /^\d+$/
135 0 1 0 defined $next and $next =~ /^\d+$/
176 21 1 1 not exists $parent->{$leaf} and $opts->{'strict'}
199 2 0 0 exists $parent->{$leaf} and $opts->{'strict'}
231 2 0 0 not exists $parent->{$leaf} and $opts->{'strict'}
272 0 0 7 defined $parent->[$i] and defined $value
0 4 3 defined $parent->[$i] and defined $value and $parent->[$i] eq $value
319 0 0 0 ref $cur eq "HASH" and exists $cur->{$seg}
0 0 0 ref $cur eq "ARRAY" and $seg =~ /^\d+$/
0 0 0 ref $cur eq "ARRAY" and $seg =~ /^\d+$/ and $seg <= $cur->$#*
365 0 1 12 ref $cur eq "HASH" and exists $cur->{$seg}
1 0 0 ref $cur eq "ARRAY" and $seg =~ /^\d+$/
1 0 0 ref $cur eq "ARRAY" and $seg =~ /^\d+$/ and $seg <= $cur->$#*

or 2 conditions

line l !l condition
291 0 0 $depth //= 0
343 29 12 $depth //= 0
344 29 12 $seen ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
68 0 0 46 not defined $path or $path eq ""
184 0 1 12 not $leaf =~ /^\d+$/ or $leaf > $parent->$#*
239 0 0 0 not $leaf =~ /^\d+$/ or $leaf > $parent->$#*
268 7 0 0 defined $parent->[$i] or defined $value