Branch Coverage

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


line true false branch
126 0 35 unless (exists $ATTRIBUTES{$object_type})
145 0 40 if $name
154 0 21 unless ($f1)
166 21 0 $test->{'is_valid'} ? :
175 5 16 defined $test->{'default_value'} ? :
179 18 3 $test->{'is_nullable'} ? :
182 2 19 $test->{'is_unique'} ? :
185 2 19 $test->{'is_primary_key'} ? :
188 1 20 $test->{'is_foreign_key'} ? :
192 2 19 $test->{'is_auto_increment'} ? :
209 4 0 $test->{'deferrable'} ? :
212 4 0 $test->{'is_valid'} ? :
251 1 0 $test->{'is_valid'} ? :
272 2 0 $test->{'is_valid'} ? :
288 2 0 if exists $test->{'scope'}
305 1 0 $test->{'is_valid'} ? :
352 4 0 if ($arg{'fields'}) { }
361 0 21 unless my $fld = $obj->get_field($f_name)
384 6 5 unless defined $test->{$plural}
386 5 0 if (my(@tests) = @{$test->{$plural};})
419 1 0 $test->{'is_valid'} ? :
422 1 0 if ($test->{'tables'}) { }
454 93 3 unless $@
456 3 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 2 47 if (@errors)
475 1 1 @errors == 1 ? :
480 6 41 unless defined $ntests
482 41 0 if ($ntests ne 'no_plan') { }