Branch Coverage

blib/lib/Test/DBIx/Class/Schema.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
18 11 1 defined $options ? :
40 10 1 if (defined $self->{'schema'}) { }
59 0 11 if (defined $self->{'glue'}) { }
91 8 2 unless $tb2_already_done_testing or $ENV{'TEST_AGGREGATE'}
105 4 18 unless (exists $self->{'methods'}{$method_type} and @{$self->{'methods'}{$method_type};})
116 22 29 if ($source->has_relationship($method)) { }
2 27 elsif ($method_type eq 'relations') { }
27 0 elsif ($method_type eq 'columns') { }
124 1 21 ref $cond_ref eq 'ARRAY' ? :
128 3 20 if ('CODE' eq ref $cond)
156 3 3 unless $proxy
157 1 2 if (grep /$method/, @$proxy)
164 1 0 if ($result->can($method) and $result->$method->isa('DBIx::Class::ResultSet')) { }
175 24 3 if ($source->has_column($method))
188 0 4 unless $proxy
189 3 1 if (grep /$method/, @$proxy)
227 21 1 unless exists $self->{'methods'}{$method_type} and @{$self->{'methods'}{$method_type};}
253 4 18 unless (exists $self->{'methods'}{$method_type} and @{$self->{'methods'}{$method_type};})
262 2 16 scalar @diff == 1 ? :
269 0 18 if ($self->{'test_missing'}) { }
270 0 0 unless is_deeply(\@diff, [], "All known $method_type method$plural defined in test")
277 4 14 if (scalar @diff)
293 18 0 if (wantarray)