Branch Coverage

blib/lib/Test/DBIx/Class/Schema.pm
Criterion Covered Total %
branch 33 44 75.0


line true false branch
15 10 0 defined $options ? :
37 10 0 if (defined $$self{'schema'}) { }
56 0 10 if (defined $$self{'glue'}) { }
84 8 2 unless $$tb{'Done_Testing'} or $ENV{'TEST_AGGREGATE'}
99 2 18 unless (@{$$self{'methods'}{$method_type};})
110 18 31 if ($source->has_relationship($method)) { }
1 30 elsif ($method_type eq 'relations') { }
30 0 elsif ($method_type eq 'columns') { }
118 1 17 ref $cond_ref eq 'ARRAY' ? :
122 0 19 if ('CODE' eq ref $cond)
150 1 2 unless $proxy
151 0 2 if (grep /$method/, @$proxy)
158 1 0 if ($result->can($method) and $result->$method->isa('DBIx::Class::ResultSet')) { }
169 27 3 if ($source->has_column($method))
182 3 4 unless $proxy
183 3 1 if (grep /$method/, @$proxy)
221 19 1 unless exists $$self{'methods'}{$method_type} and @{$$self{'methods'}{$method_type};}
251 1 19 scalar @diff == 1 ? :
258 0 20 if ($$self{'test_missing'}) { }
259 0 0 unless is_deeply(\@diff, [], "All known $method_type method$plural defined in test")
266 2 18 if (scalar @diff)
281 20 0 if (wantarray)