Branch Coverage

blib/lib/Test/SQL/Translator.pm
Criterion Covered Total %
branch 39 60 65.0


line true false branch
130 0 35 unless (exists $ATTRIBUTES{$object_type})
148 0 40 if $name
157 0 21 unless ($f1)
169 21 0 $test->{'is_valid'} ? :
181 5 16 defined $test->{'default_value'} ? :
186 18 3 $test->{'is_nullable'} ? :
188 2 19 $test->{'is_unique'} ? :
193 2 19 $test->{'is_primary_key'} ? :
199 1 20 $test->{'is_foreign_key'} ? :
205 2 19 $test->{'is_auto_increment'} ? :
222 4 0 $test->{'deferrable'} ? :
224 4 0 $test->{'is_valid'} ? :
258 1 0 $test->{'is_valid'} ? :
276 2 0 $test->{'is_valid'} ? :
293 2 0 if exists $test->{'scope'}
309 1 0 $test->{'is_valid'} ? :
353 4 0 if ($arg{'fields'}) { }
359 0 21 unless my $fld = $obj->get_field($f_name)
383 6 5 unless defined $test->{$plural}
385 5 0 if (my(@tests) = @{$test->{$plural};})
414 1 0 $test->{'is_valid'} ? :
417 1 0 if ($test->{'tables'}) { }
452 98 4 unless $@
454 4 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) { }
469 3 49 if (@errors)
470 2 1 @errors == 1 ? :
473 6 43 unless defined $ntests
475 43 0 if ($ntests ne 'no_plan') { }