Branch Coverage

blib/lib/DBIx/DBSchema/DBD/mysql.pm
Criterion Covered Total %
branch 3 38 7.8


line true false branch
42 0 0 unless my $sth = $dbh->prepare("SHOW COLUMNS FROM $table")
43 0 0 unless $sth->execute
47 0 0 unless $_->{'Type'} =~ /^(\w+)\(?([^)]+)?\)?( \d+)?$/
51 0 0 if (defined $default) { }
52 0 0 if $default eq ""
53 0 0 if $default eq 0
54 0 0 if uc $default eq "CURRENT_TIMESTAMP"
65 0 0 $_->{'Null'} =~ /^YES$/i ? :
106 0 0 unless my $sth = $dbh->prepare("SHOW INDEX FROM $table")
108 0 0 unless $sth->execute
113 0 0 if ($row->{'Key_name'} eq 'PRIMARY') { }
0 0 elsif ($row->{'Non_unique'}) { }
131 0 1 if $column_obj->type =~ /^(\w*)SERIAL$/i
134 0 1 if ($column_obj->quoted_default =~ /^(NOW)\(\)$/i and $column_obj->type =~ /^(TIMESTAMP|DATETIME)$/i)
143 1 0 if ($column_obj->type =~ /(TEXT|BLOB)/i and defined $column_obj->default)
170 0 0 if $canonical{uc $_->type}
179 0 0 if $canonical_length{uc $new_column->type} and ($new_column->length || '') eq ""
183 0 0 if (uc $old_column->type ne uc $new_column->type or ($old_column->length || '') ne ($new_column->length || ''))
193 0 0 if ($old_column->null ne $new_column->null)