Condition Coverage

blib/lib/Data/Dump/Partial.pm
Criterion Covered Total %
condition 46 50 92.0


and 3 conditions

line !l l&&!r l&&r condition
19 12 43 0 @data > 1 and ref $data[-1] ne 'HASH'
29 49 5 1 $$opts{'precious_keys'} and @{$$opts{'precious_keys'};} > $$opts{'max_keys'}
50 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'}
72 28 5 5 $$opts{'pair_filter'} and not $skip_modify_outermost_hash
75 2 0 9 @res == 2 and $res[0] eq $_
2 3 6 @res == 2 and $res[0] eq $_ and "$res[1]" eq "$$oref{$_}"
85 32 3 3 $$opts{'mask_keys_regex'} and not $skip_modify_outermost_hash
95 1 28 9 $$opts{'max_keys'} and keys %$oref > $$opts{'max_keys'}
113 9 11 0 $$opts{'precious_keys'} and $_ ~~ \@{$$opts{'precious_keys'};}
147 24 30 1 $$opts{'max_total_len'} and length $out > $$opts{'max_total_len'}

or 2 conditions

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