Branch Coverage

blib/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
35 0 0 unless (defined $self->preserve_case)
39 0 0 if ($self->db_schema and $self->db_schema->[0] eq "%")
74 0 0 unless $table_def
95 0 0 if ($f_schema)
100 0 0 if $matched
105 0 0 if $f_schema
108 0 0 if lc $_->name eq lc $f_table
114 0 0 unless ($remote_table)
117 0 0 $remote_schema ? :
128 0 0 if ($rest)
168 0 0 unless (exists $self->{'_cache'}{'_mysql_keys'}{$table->sql_name})
173 0 0 if $row->{'Non_unique'}
201 0 0 if $keyname eq "PRIMARY"
215 0 0 if ($info->{'data_type'} eq 'int') { }
0 0 elsif ($info->{'data_type'} eq 'double') { }
223 0 0 unless $data_type =~ /^(?: (?:var)?(?:char(?:acter)?|binary) | bit | year)\z/xi
233 0 0 unless defined $column_type
235 0 0 if ($data_type eq 'bit' and not exists $info->{'size'}) { }
0 0 elsif ($data_type =~ /^(?:float|double precision|decimal)\z/i) { }
0 0 elsif ($data_type eq 'year') { }
0 0 elsif ($data_type =~ /^(?:date(?:time)?|timestamp)\z/) { }
0 0 elsif ($data_type =~ /^(?:enum|set)\z/ and $has_information_schema and $column_type =~ /^(?:enum|set)\(/) { }
236 0 0 if defined $precision
239 0 0 if (defined $precision and defined $scale)
240 0 0 if ($precision == 10 and $scale == 0) { }
249 0 0 if ($column_type =~ /\(2\)/) { }
0 0 elsif ($column_type =~ /\(4\)/ or $info->{'size'} == 4) { }
257 0 0 unless (defined $self->datetime_undef_if_invalid and $self->datetime_undef_if_invalid == 0)
275 0 0 if (exists $info->{'default_value'} and $info->{'default_value'} eq "")
276 0 0 if ($has_information_schema) { }
277 0 0 unless (defined $default)
282 0 0 unless $data_type =~ /char|text/i
295 0 0 if ($dbi_info->{'mysql_is_auto_increment'})
298 0 0 if ($dbi_info->{'mysql_type_name'} =~ /\bunsigned\b/i)
301 0 0 if ($dbi_info->{'mysql_values'})
304 0 0 if (not &blessed($dbi_info) and lc $dbi_info->{'COLUMN_DEF'} eq "current_timestamp" and lc $dbi_info->{'mysql_type_name'} eq "timestamp")
328 0 0 unless ($comment)
337 0 0 if (not $comment) { }
0 0 elsif ($comment =~ /^InnoDB free:/) { }
353 0 0 unless ($comment)