Condition Coverage

blib/lib/DBIx/MoCo/Relation.pm
Criterion Covered Total %
condition 29 42 69.0


and 3 conditions

line !l l&&!r l&&r condition
44 0 2 2 $ic and defined $$ic{$icache_key}
77 13 21 0 ref $_[-1] and ref $_[-1] eq 'HASH'
105 10 2 7 $icache and $$icache{$icache_key}
127 10 0 5 defined $max_off && $max_off > 0
140 19 8 0 $max_off && $max_off <= $#{$$keys{'array'};}
154 27 0 0 $with and $res->size > 0

or 2 conditions

line l !l condition
15 49 47 $$relation{$klass} ||= {'has_a', {}, 'has_many', {}}
16 96 0 $option || ''
50 2 0 $model->retrieve($other_key, $$self{$my_key}) || undef
80 30 4 $extend ||= {}
81 2 32 $off ||= 0
127 0 15 $$option{'order'} || ''
0 15 $$option{'group'} || ''
5 10 $max_off || -1
148 2 20 $off || 0

or 3 conditions

line l !l&&r !l&&!r condition
95 14 0 8 defined $$keys{'max_offset'} && $$keys{'max_offset'} == -1 || $max_off && 0 <= $max_off && $max_off <= $$keys{'max_offset'}
151 0 0 27 $$extend{'with'} || $class->find_relation_by_attr($klass, $attr)->{'option'}{'with'}