Branch Coverage

File:blib/lib/MySQL/Util/Data/Create.pm
Coverage:63.0%

line%coveragebranch
118100TFif (exists $$href{$table})
142100TFif ('MySQL::Util'->can($method))
17450TFif @a > 3
17650TFif (@a == 3) { }
50TFelsif (@a == 2) { }
19950TFif ($conf)
2070TFif ($t eq $table) { }
21950TFif ($t eq $table) { }
24950TFif ($table =~ /^(\w+)\.(\w+)/)
2500TFif ($1 ne $self->_schema)
25750TFif ($$defaults_href{$col_name} =~ /^null$/i)
280100TFunless (defined $method)
28850TFunless $values
31650TFif ($self->is_fk_column('table', $table, 'column', $col_name)) { }
32750TFif ($fq)
33750TFunless ($tables{$ref_table})
37250TFif ($self->is_fk_column('table', $table, 'column', $col_name)) { }
39550TFif $where
42250TFif (exists $$col_data_href{$col_name})
4270TFif ($self->_column_exists('table', $table, 'column', $col_name))
4330TFif (not defined $val) { }
4340TFif ($self->is_column_nullable('table', $table, 'column', $col_name)) { }
48150TFif ($where)
48750TFunless ($cnt)
519100TFunless (exists $$c{$func})
537100TFif (defined $$c{$table}{$constraint_name})
563100TFunless ($self->is_fk_column('table', $table, 'column', $col_name))
61050TFif $extra_criteria
650100TFif (not $self->_get_constraint_non_fk_columns('table', $table, 'constraint_name', $constraint_name))
670100TFif (not $href) { }
67150TFif ($self->is_self_referencing('table', $table)) { }
50TFelsif ($self->_is_table_empty('table', $table, 'col_data_href', $col_data_href)) { }
69250TFunless (exists $$col_data_href{lc $col})
735100TFif ($ref_fq eq $parent_table)
77950TFif (exists $$fk_tree{$ref_table_fq})
814100TFif (not $depth) { }
817100TFif (scalar keys %{$$fk_tree{$parent_table};}) { }
84350TFunless ($from{"$table $alias"})
85050TFif (scalar keys %{$$fk_tree{$parent_table};})
888100TFif ($depth)
895100TFif (exists $$col_data_href{$col_name})
932100TFif (scalar keys %$fk_tree)
967100TFif (not @a) { }
980100TFif $tmp
997100TFif $where
1007100TFif (not $href) { }
1020100TFunless (exists $$col_data_href{lc $col})
102150TFunless (defined $$href{$col})
10220TFunless ($self->is_column_nullable('table', $table, 'column', $col))
1081100TFif ($depth != 0)
1088100TFif (exists $$remaining_data_href{$col_name})
112650TFif ($self->is_self_referencing('table', $ref_fq, 'name', $fk_name))
1144100TFif ($href or $depth == 0)
1146100TFunless ($href)
1155100TFif ($hit)
117850TFunless (exists $$col_data_href{$col})
11790TFunless ($self->is_column_nullable('table', $table, 'column', $col))
120850TFif ($self->has_ak($table))
1236100TFif ($self->has_pk($table) and not $self->is_pk_auto_inc($table))
1291100TFif exists $$col_data_href{$name}
1292100TFif $$col{'EXTRA'} =~ /auto/
129450TFif $self->is_fk_column('table', $table, 'column', $col)
129650TFif ($type =~ /varchar\((\d+)\)/) { }
50TFelsif ($type =~ /char\((\d+)\)/) { }
50TFelsif ($type =~ /int\((\d+)\)/) { }
0TFelsif ($type =~ /date/) { }
0TFelsif ($type =~ /^enum\((.+)\)$/) { }
1338100TFif $$col_href{'EXTRA'} =~ /auto/
1339100TFif exists $$col_data_href{$col_name}
134550TFif ($type =~ /^enum\((.+)\)$/)
138350TFif ($self->is_fk_column('table', $table, 'column', $col_name)) { }
139450TFif ($fq)
14030TFif ($fq)