Branch Coverage

blib/lib/SQL/Translator/Parser/YAML.pm
Criterion Covered Total %
branch 17 26 65.3


line true false branch
17 0 22 if $translator->debug
35 104 70 $tdata->{$_} ? :
0 58 unless my $table = $schema->add_table(map({$tdata->{$_} ? ($_, $tdata->{$_}) : ();} "name", "extra", "options"))
47 0 178 unless $table->add_field(%$fdata)
49 52 126 if $fdata->{'is_primary_key'}
52 16 42 unless $tdata->{'indices'}
53 0 19 unless $table->add_index(%$idata)
56 11 47 unless $tdata->{'constraints'}
57 0 74 unless $table->add_constraint(%$cdata)
72 0 3 unless $schema->add_view(%$vdata)
86 0 9 unless $schema->add_trigger(%$tdata)
100 0 3 unless $schema->add_procedure(%$tdata)
103 0 22 if (my $tr_data = $data->{'translator'})