Branch Coverage

blib/lib/DBIx/DataModel/Schema/Generator.pm
Criterion Covered Total %
branch 15 50 30.0


line true false branch
40 0 0 ref $_[0] eq __PACKAGE__ ? :
49 0 0 ref $_[0] eq __PACKAGE__ ? :
64 0 0 unless $tr->{'producer_args'}
84 0 2 unless my $arg1 = shift()
85 2 0 ref $arg1 && $arg1->isa('DBI::db') ? :
89 0 0 unless "DBI"->connect($arg1, $user, $passwd, $options)
122 0 7 unless my $fkey_sth = &try(sub { $dbh->foreign_key_info(@table_id, undef, undef, undef); } )
157 0 0 unless my $dbic_schema = shift()
160 0 0 unless eval { do { &Module::Load::load($dbic_schema); 1 } }
181 0 0 unless my $inflate_info = $column_info->{'_inflate_info'}
184 0 0 if $source->relationship_info($col)
212 0 0 $relinfo->{'attrs'}{'join_type'} eq 'LEFT' ? :
0 0 $relinfo->{'attrs'}{'accessor'} eq 'multi' ? :
217 0 0 ($moniker cmp $relmoniker || $fk cmp $pk) < 0 ? :
227 0 0 unless defined $other_assoc->{'mult_min'}
228 0 0 unless defined $other_assoc->{'mult_max'}
244 0 0 $pk ? :
290 0 2 unless @{$self->{'tables'};}
299 1 4 if $count > 1
301 1 4 if $count > 1
339 0 7 if ($table->{'remarks'})
364 0 5 if $a->[1]{'mult_max'} eq 1 and $a->[0]{'mult_max'} eq "*"
374 1 4 $a->[1]{'is_cascade'} ? :
399 2 0 unless $self->{'column_types'}
445 5 5 $plural ? :