Branch Coverage

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


line true false branch
41 0 0 ref $_[0] eq 'DBIx::DataModel::Schema::Generator' ? :
50 0 0 ref $_[0] eq 'DBIx::DataModel::Schema::Generator' ? :
65 0 0 unless $tr->{'producer_args'}
85 0 2 unless my $arg1 = shift()
86 2 0 ref $arg1 && $arg1->isa('DBI::db') ? :
90 0 0 unless "DBI"->connect($arg1, $user, $passwd, $options)
123 0 7 unless my $fkey_sth = &try(sub { $dbh->foreign_key_info(@table_id, undef, undef, undef); } )
158 0 0 unless my $dbic_schema = shift()
161 0 0 unless eval { do { &Module::Load::load($dbic_schema); 1 } }
182 0 0 unless my $inflate_info = $column_info->{'_inflate_info'}
185 0 0 if $source->relationship_info($col)
213 0 0 $relinfo->{'attrs'}{'join_type'} eq 'LEFT' ? :
0 0 $relinfo->{'attrs'}{'accessor'} eq 'multi' ? :
218 0 0 ($moniker cmp $relmoniker || $fk cmp $pk) < 0 ? :
228 0 0 unless defined $other_assoc->{'mult_min'}
229 0 0 unless defined $other_assoc->{'mult_max'}
245 0 0 $pk ? :
291 0 2 unless @{$self->{'tables'};}
300 1 4 if $count > 1
302 1 4 if $count > 1
340 0 7 if ($table->{'remarks'})
365 0 5 if $a->[1]{'mult_max'} eq 1 and $a->[0]{'mult_max'} eq "*"
375 1 4 $a->[1]{'is_cascade'} ? :
400 2 0 unless $self->{'column_types'}
446 5 5 $plural ? :