Branch Coverage

blib/lib/DBIx/MoCo/Relation.pm
Criterion Covered Total %
branch 47 68 69.1


line true false branch
12 0 96 unless $model->require
29 0 48 unless $$option{'key'}
30 0 48 if (ref $$option{'key'} eq 'HASH') { }
40 1 47 if ($klass->icache_expiration) { }
44 2 2 if ($ic and defined $$ic{$icache_key}) { }
49 0 2 unless defined $$self{$my_key}
51 2 0 if $o
58 3 27 unless defined $$self{$my_key}
59 9 18 unless $model->retrieve($other_key, $$self{$my_key})
70 0 48 unless $$option{'key'}
77 0 34 if ref $_[-1] and ref $_[-1] eq 'HASH'
82 13 21 defined $lt ? :
92 12 22 unless defined $keys
93 0 22 unless defined $$keys{'array'}
101 19 15 if (&$cond_cached($keys, $max_off)) { }
105 7 12 if ($icache and $$icache{$icache_key})
108 5 2 defined $max_off ? :
116 0 15 ref $$option{'key'} eq 'HASH' ? :
119 0 15 unless defined $$self{$my_key}
122 0 15 if $$option{'condition'}
124 15 0 unless $model->retrieve_keys
127 15 0 $option ? :
15 0 $option ? :
5 10 defined $max_off && $max_off > 0 ? :
140 0 27 $max_off && $max_off <= $#{$$keys{'array'};} ? :
143 5 22 if ($icache) { }
154 0 27 if ($with and $res->size > 0)
158 0 27 wantarray ? :
172 0 10 unless $self
180 5 6 if ($$hm{'class'} eq $class)
192 10 13 unless my $parent = $self->$attr
206 0 27 unless $$relation{$klass}
208 0 27 if (my $has_a = $$relation{$klass}{'has_a'}{$attr})
212 27 0 if (my $has_many = $$relation{$klass}{'has_many'}{$attr})