Branch Coverage

blib/lib/MongoDB/GridFSBucket/DownloadStream.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
134 0 0 unless $self->_result and $self->_result->has_next
137 0 0 if ($chunk->{'n'} != $self->_chunk_n)
151 0 0 $chunk->{'n'} == $last_chunk_n ? :
152 0 0 if (length $chunk->{'data'} != $expected_size)
170 0 0 if ($self->{'_buffer'})
181 0 0 unless (defined $/)
185 0 0 unless $self->_ensure_buffer
188 0 0 unless $self->_get_next_chunk
190 0 0 $newline_index < 0 ? :
197 0 0 if ($self->_closed)
203 0 0 unless $self->_result
215 0 0 if ($n != $i)
221 0 0 $n == $last_chunk_n ? :
222 0 0 if (length $chunks[$i]{'data'}{'data'} != $expected_size)
257 0 0 if ($self->_closed)
278 0 0 if $self->_closed or not $self->_ensure_buffer
293 0 0 if $self->_closed
322 0 0 if ($self->_closed)
329 0 0 if ($len < 0)
337 0 0 if $offset < 0
338 0 0 if ($offset > $bufflen) { }
345 0 0 unless $self->_ensure_buffer
347 0 0 unless $self->_get_next_chunk
364 0 0 if ($self->_closed)
369 0 0 unless wantarray
380 0 0 unless $self->_closed
392 0 0 if (not $mode or $mode eq ':raw')