Condition Coverage

blib/lib/Data/Dump/Partial.pm
Criterion Covered Total %
condition 47 50 94.0


and 3 conditions

line !l l&&!r l&&r condition
22 12 43 0 @data > 1 and ref $data[-1] ne "HASH"
32 49 5 1 $opts->{'precious_keys'} and @{$opts->{'precious_keys'};} > $opts->{'max_keys'}
53 2 52 100 $opts->{'max_len'} and $ctx->is_scalar
54 0 100 $opts->{'max_len'} and $ctx->is_scalar and defined $$oref
52 96 4 $opts->{'max_len'} and $ctx->is_scalar and defined $$oref and length $$oref > $opts->{'max_len'}
7 130 13 $opts->{'max_elems'} and $ctx->is_array
137 7 6 $opts->{'max_elems'} and $ctx->is_array and @$oref > $opts->{'max_elems'}
75 28 5 5 $opts->{'pair_filter'} and not $skip_modify_outermost_hash
78 2 0 9 @res == 2 and $res[0] eq $_
2 3 6 @res == 2 and $res[0] eq $_ and "$res[1]" eq "$oref->{$_}"
88 32 3 3 $opts->{'mask_keys_regex'} and not $skip_modify_outermost_hash
98 1 28 9 $opts->{'max_keys'} and keys %$oref > $opts->{'max_keys'}
116 9 8 3 $opts->{'precious_keys'} and grep {$_ eq $k;} @{$$opts{"precious_keys"};}
150 24 30 1 $opts->{'max_total_len'} and length $out > $opts->{'max_total_len'}

or 2 conditions

line l !l condition
26 31 24 $opts->{'max_keys'} //= 5
27 25 30 $opts->{'max_elems'} //= 5
28 26 29 $opts->{'max_len'} //= 32
29 25 30 $opts->{'max_total_len'} //= 80