Branch Coverage

blib/lib/SQL/Translator/Parser/DB2.pm
Criterion Covered Total %
branch 5 32 15.6


line true false branch
670 0 1 unless defined $main::RD_ERRORS
671 0 1 unless defined $main::RD_WARN
672 0 1 unless defined $main::RD_HINT
674 0 1 $translator->trace ? :
680 1 0 unless defined $result
681 0 0 if $DEBUG
693 0 0 unless my $table = $schema->add_table("name", $tdata->{'name'})
706 0 0 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'})
709 0 0 if $fdata->{'is_primary_key'}
712 0 0 unless $cdata->{'type'} eq "foreign_key"
718 0 0 unless $tdata->{'indices'}
722 0 0 unless my $index = $table->add_index("name", $idata->{'name'}, "type", uc $idata->{'type'}, "fields", $idata->{'fields'})
726 0 0 unless $tdata->{'constraints'}
735 0 0 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'})
740 0 0 unless $result->{'views'}
747 0 0 unless $result->{'triggers'}