Branch Coverage

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


line true false branch
235 0 0 if $pf->count_documents({}) > 0
240 0 0 unless (grep {$_->{'name'} eq 'filename_1_uploadDate_1';} $pfi->list->all)
244 0 0 unless (grep {$_->{'name'} eq 'files_id_1_n_1';} $pci->list->all)
322 0 0 unless $id
324 0 0 unless $file_doc
327 0 0 $file_doc->{'length'} > 0 ? :
368 0 0 unless defined $filename and length $filename
371 0 0 unless $self->_tried_indexing
373 0 0 $options ? :
409 0 0 unless defined $id_copy and length $id_copy
411 0 0 unless defined $filename and length $filename
414 0 0 unless $self->_tried_indexing
416 0 0 $options ? :
438 0 0 unless defined $id
440 0 0 unless defined $target_fh
442 0 0 unless &reftype($target_fh) eq 'GLOB'
475 0 0 unless defined $filename and length $filename
477 0 0 unless defined $source_fh
479 0 0 unless &reftype($source_fh) eq 'GLOB'
517 0 0 unless defined $id_copy and length $id_copy
519 0 0 unless defined $filename and length $filename
521 0 0 unless defined $source_fh
523 0 0 unless &reftype($source_fh) eq 'GLOB'
549 0 0 unless $self->_tried_indexing
553 0 0 unless ($delete_result->deleted_count == 1)