Branch Coverage

blib/lib/SQL/Translator/Parser/SQLite.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
649 14 1 unless defined $main::RD_ERRORS
650 14 1 unless defined $main::RD_WARN
651 15 0 unless defined $main::RD_HINT
653 0 15 $translator->trace ? :
659 0 15 unless defined $result
660 0 15 if $DEBUG
672 0 27 unless my $table = $schema->add_table("name", $tdata->{'name'})
685 0 124 unless my $field = $table->add_field("name", $fdata->{'name'}, "data_type", $fdata->{'data_type'}, "size", $fdata->{'size'}, "default_value", $fdata->{'default'}, "is_auto_increment", $fdata->{'is_auto_inc'}, "is_nullable", $fdata->{'is_nullable'}, "comments", $fdata->{'comments'})
688 16 108 if $fdata->{'is_primary_key'}
691 63 11 unless $cdata->{'type'} eq "foreign_key"
697 26 1 unless $tdata->{'indices'}
701 0 1 unless my $index = $table->add_index("name", $idata->{'name'}, "type", uc($idata->{'type'} || ''), "fields", $idata->{'fields'})
705 7 20 unless $tdata->{'constraints'}
716 0 42 unless my $constraint = $table->add_constraint("name", $cdata->{'name'}, "type", $cdata->{'type'}, "fields", $cdata->{'fields'}, "reference_table", $cdata->{'reference_table'}, "reference_fields", $cdata->{'reference_fields'}, "match_type", $cdata->{'match_type'} || '', "on_delete", $cdata->{'on_delete'} || $cdata->{'on_delete_do'}, "on_update", $cdata->{'on_update'} || $cdata->{'on_update_do'})
721 0 15 unless $result->{'views'}
728 0 15 unless $result->{'triggers'}