Branch Coverage

blib/lib/SQL/Translator/Parser/SQLite.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
648 16 1 unless defined $main::RD_ERRORS
650 16 1 unless defined $main::RD_WARN
652 17 0 unless defined $main::RD_HINT
655 0 17 $translator->trace ? :
661 0 17 unless defined $result
662 0 17 if $DEBUG
672 0 29 unless my $table = $schema->add_table("name", $tdata->{'name'})
690 10 118 $fdata->{'is_auto_inc'} ? :
0 128 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'}, $fdata->{'is_auto_inc'} ? ("extra", {"auto_increment_type", "monotonic"}) : (), "is_nullable", $fdata->{'is_nullable'}, "comments", $fdata->{'comments'})
693 18 110 if $fdata->{'is_primary_key'}
696 67 11 unless $cdata->{'type'} eq "foreign_key"
702 28 1 unless $tdata->{'indices'}
706 0 1 unless my $index = $table->add_index("name", $idata->{'name'}, "type", uc($idata->{'type'} || ''), "fields", $idata->{'fields'})
710 9 20 unless $tdata->{'constraints'}
719 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'})
724 0 17 unless $result->{'views'}
731 0 17 unless $result->{'triggers'}