Branch Coverage

blib/lib/MySQL/Util.pm
Criterion Covered Total %
branch 0 168 0.0


line true false branch
169 0 0 if (defined $ENV{'VERBOSE_FUNCS'})
181 0 0 if (not $dbh) { }
202 0 0 if ($schema) { }
244 0 0 if ($fk_href->{'COLUMN_NAME'} eq $column)
259 0 0 if (defined $self->$cache->{$table})
287 0 0 if ($fq)
288 0 0 if ($table =~ /\w\.\w/) { }
0 0 elsif ($schema) { }
298 0 0 if ($table =~ /^(\w+)\.(\w+)$/)
301 0 0 if $curr ne $1
319 0 0 if ($table =~ /^(\w+)\.(\w+)$/)
341 0 0 if ($item =~ /CONSTRAINT `$fk` FOREIGN KEY/)
357 0 0 unless my $table = $a{'table'}
358 0 0 unless my $column = $a{'column'}
364 0 0 if ($col_href->{'FIELD'} eq $column)
388 0 0 if ($self->_verbose_funcs->{$key})
390 0 0 if $func_counter
416 0 0 if ($self->_verbose_funcs->{$key})
418 0 0 if $func_counter
499 0 0 unless ($self->_column_exists('table', $table, 'column', $column))
506 0 0 if ($col_href->{'FIELD'} =~ /^$column$/i)
541 0 0 if (defined $self->$cache->{$table})
577 0 0 if (not defined $table) { }
579 0 0 unless defined $tables_aref
626 0 0 unless my $table = shift()
634 0 0 if ($cons->{$con_name}[0]{'CONSTRAINT_TYPE'} eq 'UNIQUE')
666 0 0 unless ($table =~ /\./)
674 0 0 if ($indexes->{$index}[0]{'NON_UNIQUE'} == 0)
693 0 0 if ($self->has_ak($table))
729 0 0 if (defined $table)
731 0 0 if ($schema)
732 0 0 if ($unfq_schema ne $schema)
744 0 0 if (defined $fq_table)
748 0 0 if ($cons_name eq $name)
756 0 0 unless $schema
765 0 0 if (defined $self->$cache->{$t})
769 0 0 if ($cons_name eq $name)
783 0 0 unless ($self->span)
797 0 0 if ($cons_name eq $name)
841 0 0 if (defined $self->$cache->{$table})
845 0 0 unless $self->table_exists($table)
860 0 0 unless ($self->span)
876 0 0 unless (defined $href->{$name})
895 0 0 if @_
923 0 0 unless my $table = shift()
925 0 0 unless ($table =~ /\./)
931 0 0 if (defined $self->{$cache}{$table})
946 0 0 if ($parent_table eq $table)
949 0 0 if ($parent_depth >= $depth)
983 0 0 if $name and $name ne $fk_name
1019 0 0 if (defined $table and not $table =~ /\./)
1024 0 0 if (not defined $table) { }
1026 0 0 unless defined $tables_aref
1046 0 0 if ($type eq 'FOREIGN KEY')
1074 0 0 unless ($table =~ /\./)
1088 0 0 if (scalar @con_cols == scalar @index_cols)
1092 0 0 if ($index_cols[$i]{'COLUMN_NAME'} ne $con_cols[$i]{'COLUMN_NAME'})
1100 0 0 if ($match)
1139 0 0 unless my $table = shift()
1141 0 0 unless ($table =~ /\./)
1152 0 0 unless (exists $h{$key_name})
1178 0 0 if ($depth > $max)
1201 0 0 unless ($table =~ /\./)
1214 0 0 if $type eq 'PRIMARY KEY'
1215 0 0 if $type eq 'FOREIGN KEY'
1216 0 0 if $type eq 'UNIQUE'
1244 0 0 unless ($table =~ /\./)
1255 0 0 if $name eq 'PRIMARY'
1256 0 0 if defined $ak->{$name}
1257 0 0 if defined $fk->{$name}
1282 0 0 unless ($table =~ /\./)
1289 0 0 if ($cons->{$con_name}[0]{'CONSTRAINT_TYPE'} eq 'PRIMARY KEY')
1321 0 0 if ($name eq 'PRIMARY')
1341 0 0 if ($self->has_pk($table))
1427 0 0 if ($self->has_pk($table))
1438 0 0 if ($col_desc_href->{'EXTRA'} =~ /auto/)
1463 0 0 if ($desc->{'NULL'} eq 'YES')
1489 0 0 if ($fk_href->{'COLUMN_NAME'} eq $column)
1521 0 0 if $name and $name ne $con_name
1547 0 0 if ($ref_fq_table eq $fq_table)
1564 0 0 unless my $table = shift()
1567 0 0 unless ($table =~ /\./)
1574 0 0 if ($schema ne $self->_schema)
1589 0 0 if ($schema ne $self->_schema)