Branch Coverage

blib/lib/Data/Embed/Reader.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
23 0 5 scalar @_ && ref $_[0] ? :
28 4 1 if (ref $input eq 'GLOB') { }
31 0 4 unless binmode $input, ':raw'
38 0 1 unless open $$self{'fh'}, '<:raw', $input
48 1 0 wantarray ? :
69 5 0 unless (exists $$self{'files'})
92 3 2 unless defined(my $index_text = $self->_read_index)
106 0 3 unless my($length, $name) = /\A \s* (\d+) \s+ (\S*) \s*\z/msx
155 2 8 unless (defined $size)
178 3 2 unless $full_length > $terminator_length
183 0 2 unless $ending eq $terminator
196 1 1 $readable > $chunk_size ? :
209 2 0 if $starter_position >= 0
219 0 2 unless $starter_position >= 0
236 0 4 if $offset_from_end < $count
239 0 4 unless seek $fh, -$offset_from_end, 2
245 0 4 unless defined(my $nread = read($fh, $chunk, $count))
249 0 4 unless $nread