Condition Coverage

blib/lib/MorboDB/Collection.pm
Criterion Covered Total %
condition 46 103 44.6


and 3 conditions

line !l l&&!r l&&r condition
138 12 21 0 $query and ref $query ne 'HASH'
33 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash'
21 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash' and ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
146 12 21 0 $query and ref $query eq 'ARRAY'
151 12 21 0 $query and ref $query eq 'Tie::IxHash'
205 0 0 7 $docs and ref $docs eq 'ARRAY'
209 0 12 0 $doc and ref $doc eq 'HASH' || ref $doc eq 'Tie::IxHash' || ref $doc eq 'ARRAY' && scalar @$doc % 2 == 0
213 0 12 0 $doc and ref $doc eq 'ARRAY'
218 0 12 0 $doc and ref $doc eq 'Tie::IxHash'
225 6 0 6 blessed($$doc{'_id'}) && blessed($$doc{'_id'}) eq 'MorboDB::OID'
262 0 4 0 $query and ref $query ne 'HASH'
4 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash'
4 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash' and ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
271 0 0 4 $update and ref $update eq 'HASH'
274 2 2 0 $opts and ref $opts ne 'HASH'
287 2 0 2 scalar @docs == 0 and $$opts{'upsert'}
338 2 2 0 $query and ref $query ne 'HASH'
4 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash'
2 0 0 $query and ref $query ne 'HASH' and ref $query ne 'Tie::IxHash' and ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
345 4 0 0 $opts and ref $opts ne 'HASH'
353 5 0 5 blessed($$_{'_id'}) && blessed($$_{'_id'}) eq 'MorboDB::OID'
384 0 0 18 $doc and ref $doc eq 'HASH'
389 9 0 9 blessed($$doc{'_id'}) && blessed($$doc{'_id'}) eq 'MorboDB::OID'

or 2 conditions

line l !l condition
156 21 12 $query ||= {}
269 4 0 $query ||= {}
277 2 2 $opts ||= {}
348 2 2 $query ||= {}
349 0 4 $opts ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 0 ref $keys eq 'ARRAY' or ref $keys eq 'HASH'
138 0 0 0 ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
209 12 0 0 ref $doc eq 'HASH' || ref $doc eq 'Tie::IxHash' || ref $doc eq 'ARRAY' && scalar @$doc % 2 == 0
223 6 6 0 $$doc{'_id'} ||= 'MorboDB::OID'->new
262 0 0 0 ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
295 0 2 0 $$doc{'_id'} ||= 'MorboDB::OID'->new
338 0 0 0 ref $query ne 'ARRAY' || ref $query eq 'ARRAY' && scalar @$query % 2 != 0
387 17 1 0 $$doc{'_id'} ||= 'MorboDB::OID'->new