line |
true |
false |
branch |
295
|
0 |
0 |
if (@args == 1 and ref $args[0] eq 'HASH') |
324
|
0 |
0 |
if (@args == 1) { } |
|
0 |
0 |
elsif (@args % 2 == 0) { } |
326
|
0 |
0 |
if $arg->can('encode_bson') |
|
0 |
0 |
if (eval {
do {
$arg->can('decode_bson') if $arg->can('encode_bson')
}
}) { } |
|
0 |
0 |
elsif (ref $arg eq 'HASH') { } |
369
|
0 |
0 |
unless ref $_[1] |
377
|
0 |
0 |
defined $_[2] ? : |
419
|
0 |
0 |
unless ref $_[1] eq 'ARRAY' |
432
|
0 |
0 |
defined $_[2] ? : |
438
|
0 |
0 |
$op->_should_use_acknowledged_write ? : |
475
|
0 |
0 |
unless ref $_[1] |
484
|
0 |
0 |
defined $_[2] ? : |
512
|
0 |
0 |
unless ref $_[1] |
521
|
0 |
0 |
defined $_[2] ? : |
557
|
0 |
0 |
unless ref $_[1] and ref $_[2] |
568
|
0 |
0 |
defined $_[3] ? : |
608
|
0 |
0 |
unless ref $_[1] and ref $_[2] |
619
|
0 |
0 |
defined $_[3] ? : |
659
|
0 |
0 |
unless ref $_[1] and ref $_[2] |
670
|
0 |
0 |
defined $_[3] ? : |
766
|
0 |
0 |
if $options->{'sort_by'} |
769
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
834
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
907
|
0 |
0 |
unless ref $_[1] |
914
|
0 |
0 |
if exists $options->{'projection'} |
917
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
933
|
0 |
0 |
$op->_should_use_acknowledged_write ? : |
978
|
0 |
0 |
unless ref $_[1] and ref $_[2] |
1029
|
0 |
0 |
unless ref $_[1] and ref $_[2] |
1127
|
0 |
0 |
exists $options->{'startAtOperationTime'} ? : |
|
0 |
0 |
exists $options->{'fullDocument'} ? : |
|
0 |
0 |
exists $options->{'resumeAfter'} ? : |
|
0 |
0 |
exists $options->{'startAfter'} ? : |
|
0 |
0 |
exists $options->{'maxAwaitTimeMS'} ? : |
1196
|
0 |
0 |
unless ref $_[1] eq 'ARRAY' |
1206
|
0 |
0 |
$options->{$k} ? : |
|
0 |
0 |
if exists $options->{$k} |
1210
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
1215
|
0 |
0 |
if ref $options->{'hint'} |
1220
|
0 |
0 |
if (scalar @$pipeline > 0) |
1232
|
0 |
0 |
exists $options->{'maxAwaitTimeMS'} ? : |
1235
|
0 |
0 |
$has_out ? : |
1284
|
0 |
0 |
unless ref $filter |
1291
|
0 |
0 |
if (exists $options->{'skip'}) |
1295
|
0 |
0 |
if (exists $options->{'limit'}) |
1302
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
1307
|
0 |
0 |
if ref $options->{'hint'} |
1337
|
0 |
0 |
exists $options->{'maxTimeMS'} ? : |
1341
|
0 |
0 |
if (not exists $filtered->{'maxTimeMS'} and $self->max_time_ms) |
1390
|
0 |
0 |
unless defined $_[1] |
1398
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
1596
|
0 |
0 |
unless ref $requests eq 'ARRAY' |
1598
|
0 |
0 |
unless @$requests |
1599
|
0 |
0 |
if defined $options and ref $options ne 'HASH' |
1604
|
0 |
0 |
exists $options->{'ordered'} ? : |
1608
|
0 |
0 |
$ordered ? : |
1617
|
0 |
0 |
if (my $type = ref $requests->[$i]) { } |
1618
|
0 |
0 |
if ($type eq 'ARRAY') { } |
|
0 |
0 |
elsif ($type eq 'HASH') { } |
1634
|
0 |
0 |
unless ref $args eq 'ARRAY' |
1638
|
0 |
0 |
if ($method eq 'insert_one' or $method eq 'insert_many') { } |
1645
|
0 |
0 |
$is_delete ? : |
1646
|
0 |
0 |
$is_delete ? : |
1651
|
0 |
0 |
if $opts and $opts->{'collation'} |
1654
|
0 |
0 |
if ($method eq 'delete_one') { } |
|
0 |
0 |
elsif ($method eq 'delete_many') { } |
1665
|
0 |
0 |
if $opts and $opts->{'upsert'} |
1668
|
0 |
0 |
if ($method eq 'replace_one') { } |
|
0 |
0 |
elsif ($method eq 'update_one') { } |
|
0 |
0 |
elsif ($method eq 'update_many') { } |
1704
|
0 |
0 |
if (not exists $opts->{'safe'} or $opts->{'safe'}) { } |
1718
|
0 |
0 |
if exists $options->{'projection'} |
1721
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
1729
|
0 |
0 |
if (exists $options->{'returnDocument'}) |
1731
|
0 |
0 |
unless $options->{'returnDocument'} =~ /^(?:before|after)$/ |
1732
|
0 |
0 |
delete $options->{'returnDocument'} eq 'after' ? : |
1750
|
0 |
0 |
$op->_should_use_acknowledged_write ? : |
1763
|
0 |
0 |
unless (defined $num_cursors and $num_cursors == int $num_cursors and $num_cursors > 0 and $num_cursors <= 10000) |
1768
|
0 |
0 |
ref $options eq 'HASH' ? : |
1780
|
0 |
0 |
unless $response->{'cursors'} and ref $response->{'cursors'} eq 'ARRAY' |
1814
|
0 |
0 |
if (not exists $options->{'maxTimeMS'} and $self->max_time_ms) |
1821
|
0 |
0 |
if ref $options->{'hint'} |
1842
|
0 |
0 |
unless exists $hash->{$key} |
1845
|
0 |
0 |
if $type eq 'Tie::IxHash' |
1846
|
0 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY' or $type eq 'BSON::Doc') { } |