Branch Coverage

blib/lib/Data/Embed/Reader.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
19 0 20 scalar @_ && ref $_[0] ? :
24 10 10 if (ref $input eq 'GLOB') { }
27 0 10 unless binmode $input, ':raw'
35 0 10 unless open $self->{'fh'}, '<', $input
45 10 0 wantarray ? :
68 20 4 unless (exists $self->{'files'})
98 11 9 unless defined(my $index_text = $self->_read_index)
113 0 16 unless my($length, $name) = /\A \s* (\d+) \s+ (\S*) \s*\z/msx
168 41 10 unless (defined $size)
191 5 15 unless $full_length > $terminator_length
196 6 9 unless $ending eq $terminator
209 7 2 $readable > $chunk_size ? :
222 9 0 if $starter_position >= 0
232 0 9 unless $starter_position >= 0
249 0 24 if $offset_from_end < $count
252 0 24 unless seek $fh, -$offset_from_end, 2
258 0 24 unless defined(my $nread = read($fh, $chunk, $count))
262 0 24 unless $nread