Branch Coverage

blib/lib/MongoDBx/Tiny.pm
Criterion Covered Total %
branch 6 74 8.1


line true false branch
131 0 1 if (ref $$opt{'connect_info'} eq 'ARRAY')
134 0 1 if ($$opt{'database_name'})
140 1 0 if ($@)
238 0 0 unless my $name = shift()
240 0 0 if ($$opt{'no_cache'}) { }
244 0 0 if $$cache{$name}
291 0 0 unless my $c_name = shift()
292 0 0 unless my $document = shift()
299 0 0 if ($validator->has_error)
304 0 0 unless ($$opt{'no_trigger'})
311 0 0 unless ($$opt{'no_trigger'})
344 0 0 unless (ref $proto eq 'HASH')
350 0 0 if ($reserved and my(@attr) = keys %$reserved)
360 0 0 unless $document
391 0 0 if ($reserved and my(@attr) = keys %$reserved)
396 0 0 if (wantarray) { }
419 0 0 unless $document
426 0 0 if ($validator->has_error)
432 0 0 if (not $$opt{'no_trigger'} and $d_class->trigger('before_update'))
443 0 0 if (not $$opt{'no_trigger'} and $d_class->trigger('after_update'))
469 0 0 if (not $$opt{'no_trigger'} and $d_class->trigger('before_remove'))
480 0 0 if (not $$opt{'no_trigger'} and $d_class->trigger('after_remove'))
509 0 0 unless my $c_name = shift()
510 0 0 unless my $document = shift()
511 0 0 unless $$document{'_id'}
543 0 0 unless my $c_name = shift()
544 0 0 unless my $document = shift()
601 0 0 if $$self{'gridfs'}
616 0 0 unless my $c_name = shift()
649 0 1 ref $proto ? :
650 0 1 $pkg =~ s/^\+// ? :
655 0 2 if $class->can($method)
678 0 0 unless my $c_name = shift()
679 0 0 unless my $method = shift()
707 0 0 if (ref $field eq 'ARRAY')
710 0 0 ref $field ? :
713 0 0 unless ($index_exists)