Condition Coverage

blib/lib/MongoDB/Collection.pm
Criterion Covered Total %
condition 0 118 0.0


and 3 conditions

line !l l&&!r l&&r condition
295 0 0 0 @args == 1 and ref $args[0] eq 'HASH'
557 0 0 0 ref $_[1] and ref $_[2]
608 0 0 0 ref $_[1] and ref $_[2]
659 0 0 0 ref $_[1] and ref $_[2]
769 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
834 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
917 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
978 0 0 0 ref $_[1] and ref $_[2]
1029 0 0 0 ref $_[1] and ref $_[2]
1210 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
1302 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
1341 0 0 0 not exists $filtered->{'maxTimeMS'} and $self->max_time_ms
1398 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
1599 0 0 0 defined $options and ref $options ne 'HASH'
1651 0 0 0 $opts and $opts->{'collation'}
1665 0 0 0 $opts and $opts->{'upsert'}
1721 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms
1763 0 0 0 defined $num_cursors and $num_cursors == int $num_cursors
0 0 0 defined $num_cursors and $num_cursors == int $num_cursors and $num_cursors > 0
0 0 0 defined $num_cursors and $num_cursors == int $num_cursors and $num_cursors > 0 and $num_cursors <= 10000
1780 0 0 0 $response->{'cursors'} and ref $response->{'cursors'} eq 'ARRAY'
1814 0 0 0 not exists $options->{'maxTimeMS'} and $self->max_time_ms

or 2 conditions

line l !l condition
763 0 0 $options ||= {}
784 0 0 $filter || {}
831 0 0 $options ||= {}
851 0 0 $filter || {}
911 0 0 $options ||= {}
1107 0 0 $pipeline ||= []
1108 0 0 $options ||= {}
1200 0 0 $options ||= {}
1287 0 0 $options ||= {}
1311 0 0 $res->{'n'} // 0
1333 0 0 $options ||= {}
1355 0 0 $res->{'n'} // 0
1394 0 0 $filter ||= {}
1395 0 0 $options ||= {}
1503 0 0 $args ||= {}
1527 0 0 $args ||= {}
1602 0 0 $options ||= {}
1714 0 0 $options ||= {}
1810 0 0 $filter ||= {}
1811 0 0 $options ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
1638 0 0 0 $method eq 'insert_one' or $method eq 'insert_many'
1644 0 0 0 $method eq 'delete_one' || $method eq 'delete_many'
1704 0 0 0 not exists $opts->{'safe'} or $opts->{'safe'}
1846 0 0 0 $type eq 'ARRAY' or $type eq 'BSON::Doc'