Branch Coverage

blib/lib/Data/Printer/Filter/HASH.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
14 2 79 if ($ddp->show_tied and my $tie = ref tied %$hash_ref)
17 0 81 if $ddp->max_depth and $ddp->current_depth >= $ddp->max_depth
24 12 69 unless @src_keys
25 67 2 if $ddp->sort_keys
35 7 149 if ref $idx
40 2 147 if (_needs_quote($ddp, $raw_key, $new_key))
43 0 2 if (index($new_key, $quote_char) >= 0)
58 95 54 if ($align_keys)
60 58 37 if $l > $len
71 7 149 if (ref $idx)
82 1 148 $ddp->arrows eq 'all' || $ddp->arrows eq 'first' && $ddp->current_depth == 1 ? :
86 54 95 if $padding < 0
96 2 147 if ($ref and $ref eq 'SCALAR') { }
45 102 elsif ($ref and $ref ne 'REF') { }
105 84 65 if $total_keys > 0 or $ddp->end_separator
124 0 149 unless defined $quote_keys and defined $scalar_quotes
125 147 0 if ($quote_keys eq "auto" and $raw_key eq $new_key and not $new_key =~ /\s|\r|\n|\t|\f/)