Branch Coverage

blib/lib/Test/SQL/Translator.pm
Criterion Covered Total %
branch 23 60 38.3


line true false branch
126 0 12 unless (exists $ATTRIBUTES{$object_type})
145 0 14 if $name
154 0 10 unless ($f1)
166 10 0 $test->{'is_valid'} ? :
175 0 10 defined $test->{'default_value'} ? :
179 10 0 $test->{'is_nullable'} ? :
182 0 10 $test->{'is_unique'} ? :
185 0 10 $test->{'is_primary_key'} ? :
188 0 10 $test->{'is_foreign_key'} ? :
192 0 10 $test->{'is_auto_increment'} ? :
209 0 0 $test->{'deferrable'} ? :
212 0 0 $test->{'is_valid'} ? :
251 0 0 $test->{'is_valid'} ? :
272 0 0 $test->{'is_valid'} ? :
288 0 0 if exists $test->{'scope'}
305 0 0 $test->{'is_valid'} ? :
352 2 0 if ($arg{'fields'}) { }
361 0 10 unless my $fld = $obj->get_field($f_name)
384 4 0 unless defined $test->{$plural}
386 0 0 if (my(@tests) = @{$test->{$plural};})
419 0 0 $test->{'is_valid'} ? :
422 0 0 if ($test->{'tables'}) { }
454 83 16 unless $@
456 16 0 if ($@ =~ /Can't locate (\S+)/) { }
0 0 elsif ($@ =~ /([\w\:]+ version [\d\.]+) required.+?this is only version/) { }
0 0 elsif ($@ =~ /Can't load .+? for module .+?DynaLoader\.pm/i) { }
474 15 36 if (@errors)
475 14 1 @errors == 1 ? :
480 5 31 unless defined $ntests
482 31 0 if ($ntests ne 'no_plan') { }