Branch Coverage

blib/lib/MySQL/Util/Data/Create.pm
Criterion Covered Total %
branch 0 146 0.0


line true false branch
118 0 0 if (exists $href->{$table})
142 0 0 if ('MySQL::Util'->can($method))
174 0 0 if @a > 3
176 0 0 if (@a == 3) { }
0 0 elsif (@a == 2) { }
199 0 0 if ($conf)
207 0 0 if ($t eq $table) { }
219 0 0 if ($t eq $table) { }
249 0 0 if ($table =~ /^(\w+)\.(\w+)/)
250 0 0 if ($1 ne $self->_schema)
257 0 0 if ($defaults_href->{$col_name} =~ /^null$/i)
280 0 0 unless (defined $method)
288 0 0 unless $values
316 0 0 if ($self->is_fk_column('table', $table, 'column', $col_name)) { }
327 0 0 if ($fq)
337 0 0 unless ($tables{$ref_table})
372 0 0 if ($self->is_fk_column('table', $table, 'column', $col_name)) { }
395 0 0 if $where
422 0 0 if (exists $col_data_href->{$col_name})
427 0 0 if ($self->_column_exists('table', $table, 'column', $col_name))
433 0 0 if (not defined $val) { }
434 0 0 if ($self->is_column_nullable('table', $table, 'column', $col_name)) { }
481 0 0 if ($where)
487 0 0 unless ($cnt)
519 0 0 unless (exists $c->{$func})
537 0 0 if (defined $c->{$table}{$constraint_name})
563 0 0 unless ($self->is_fk_column('table', $table, 'column', $col_name))
610 0 0 if $extra_criteria
650 0 0 if (not $self->_get_constraint_non_fk_columns('table', $table, 'constraint_name', $constraint_name))
670 0 0 if (not $href) { }
671 0 0 if ($self->is_self_referencing('table', $table)) { }
0 0 elsif ($self->_is_table_empty('table', $table, 'col_data_href', $col_data_href)) { }
692 0 0 unless (exists $$col_data_href{lc $col})
735 0 0 if ($ref_fq eq $parent_table)
779 0 0 if (exists $fk_tree->{$ref_table_fq})
814 0 0 if (not $depth) { }
817 0 0 if (scalar keys %{$$fk_tree{$parent_table};}) { }
843 0 0 unless ($from{"$table $alias"})
850 0 0 if (scalar keys %{$$fk_tree{$parent_table};})
888 0 0 if ($depth)
895 0 0 if (exists $col_data_href->{$col_name})
932 0 0 if (scalar keys %$fk_tree)
967 0 0 if (not @a) { }
980 0 0 if $tmp
997 0 0 if $where
1007 0 0 if (not $href) { }
1020 0 0 unless (exists $$col_data_href{lc $col})
1021 0 0 unless (defined $href->{$col})
1022 0 0 unless ($self->is_column_nullable('table', $table, 'column', $col))
1081 0 0 if ($depth != 0)
1088 0 0 if (exists $remaining_data_href->{$col_name})
1126 0 0 if ($self->is_self_referencing('table', $ref_fq, 'name', $fk_name))
1144 0 0 if ($href or $depth == 0)
1146 0 0 unless ($href)
1155 0 0 if ($hit)
1178 0 0 unless (exists $col_data_href->{$col})
1179 0 0 unless ($self->is_column_nullable('table', $table, 'column', $col))
1208 0 0 if ($self->has_ak($table))
1236 0 0 if ($self->has_pk($table) and not $self->is_pk_auto_inc($table))
1291 0 0 if exists $col_data_href->{$name}
1292 0 0 if $col->{'EXTRA'} =~ /auto/
1294 0 0 if $self->is_fk_column('table', $table, 'column', $col)
1296 0 0 if ($type =~ /varchar\((\d+)\)/) { }
0 0 elsif ($type =~ /char\((\d+)\)/) { }
0 0 elsif ($type =~ /int\((\d+)\)/) { }
0 0 elsif ($type =~ /date/) { }
0 0 elsif ($type =~ /^enum\((.+)\)$/) { }
1338 0 0 if $col_href->{'EXTRA'} =~ /auto/
1339 0 0 if exists $col_data_href->{$col_name}
1345 0 0 if ($type =~ /^enum\((.+)\)$/)
1383 0 0 if ($self->is_fk_column('table', $table, 'column', $col_name)) { }
1394 0 0 if ($fq)
1403 0 0 if ($fq)