Branch Coverage

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


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