Branch Coverage

lib/Data/HexDump.pm
Criterion Covered Total %
branch 29 50 58.0


line true false branch
35 0 13 if defined $self->{'file'}
41 0 0 if defined $file
48 0 0 if defined $fh
55 13 0 if defined $data
62 0 0 if defined $bs
71 13 0 unless defined $self->{'i'}
72 13 0 unless defined $self->{'j'}
75 13 0 unless ($i or $j)
80 195 13 if $i < 15
81 13 195 if $i == 7
87 0 13 if $self->{'eod'}
94 8362 551 if $i < 15
96 557 2 if $i == 7 and length $val || !($self->{'eod'} || length $val)
98 3439 5474 ord $v >= 32 && ord $v <= 126 ? :
99 551 8362 if ($i == 16)
105 0 0 if (defined $self->{'blocksize'} and $self->{'blocksize'} and $j - $self->{'j'} > $self->{'blocksize'} / 16)
113 549 2 if length $val or not length $val || $self->{'eod'}
117 11 2 if ($i or not $i || $j)
133 0 94 if defined $self->{'val'} and not length $self->{'val'}
134 0 94 if (defined $self->{'val'}) { }
94 0 elsif (defined $self->{'data'}) { }
0 0 elsif (defined $self->{'fh'}) { }
0 0 elsif (defined $self->{'file'}) { }
139 13 81 unless defined $self->{'data_offs'}
143 26 68 if $self->{'data_offs'} == length $self->{'data'}