Branch Coverage

blib/lib/Data/Dump/Partial.pm
Criterion Covered Total %
branch 52 54 96.3


line true false branch
19 0 55 if @data > 1 and ref $data[-1] ne 'HASH'
21 43 12 @data > 1 ? :
29 1 54 if $$opts{'precious_keys'} and @{$$opts{'precious_keys'};} > $$opts{'max_keys'}
33 23 32 if ($$opts{'_inner'}) { }
44 17 137 if ($$opts{'_skip_modify_outermost_hash'})
50 4 150 if ($$opts{'max_len'} and $ctx->is_scalar and defined $$oref and length $$oref > $$opts{'max_len'}) { }
6 144 elsif ($$opts{'max_elems'} and $ctx->is_array and @$oref > $$opts{'max_elems'}) { }
38 106 elsif ($ctx->is_hash) { }
72 5 33 if ($$opts{'pair_filter'} and not $skip_modify_outermost_hash) { }
75 3 6 unless @res == 2 and $res[0] eq $_ and "$res[1]" eq "$$oref{$_}"
85 3 35 if ($$opts{'mask_keys_regex'} and not $skip_modify_outermost_hash)
87 3 4 if (/$$opts{'mask_keys_regex'}/)
95 9 29 if ($$opts{'max_keys'} and keys %$oref > $$opts{'max_keys'})
98 1 8 if ($$opts{'hide_keys'})
100 3 3 if $_ ~~ \@{$$opts{'hide_keys'};}
103 1 8 if keys %hash <= $mk
104 1 7 if ($$opts{'worthless_keys'})
106 1 5 if keys %hash <= $mk
107 3 2 if $_ ~~ \@{$$opts{'worthless_keys'};}
110 1 7 if keys %hash <= $mk
113 17 3 unless $$opts{'precious_keys'} and $_ ~~ \@{$$opts{'precious_keys'};}
114 7 13 if keys %hash <= $mk
121 17 21 if ($modified)
127 9 8 if $truncated
132 1 126 if ($$opts{'dd_filter'}) { }
147 1 54 if ($$opts{'max_total_len'} and length $out > $$opts{'max_total_len'})
151 0 55 unless defined wantarray