Condition Coverage

blib/lib/Test/Mock/Mango/Collection.pm
Criterion Covered Total %
condition 18 22 81.8


or 2 conditions

line l !l condition
19 42 3 $db || undef
109 2 1 $$Test::Mock::Mango::data{'collection'}[0] || undef
135 1 1 $$self{'db'} || {'name', undef}
186 6 0 shift() // {}
187 0 4 shift() // {}
199 2 2 $Test::Mock::Mango::n // 1
224 2 2 $Test::Mock::Mango::n // 1
248 2 1 $$Test::Mock::Mango::data{'collection'}[0] || undef

or 3 conditions

line l !l&&r !l&&!r condition
166 2 2 0 $$docs[$_]{'_id'} // 'Mango::BSON::ObjectID'->new
172 2 2 0 $$docs{'_id'} // 'Mango::BSON::ObjectID'->new