Branch Coverage

blib/lib/MySQL/Diff/Database.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
71 0 0 if $p{'dbh'}
75 0 0 if ($p{'file'}) { }
0 0 elsif ($p{'db'}) { }
100 0 0 if $self->{'_source'}{'file'}
101 0 0 if $self->{'_source'}{'db'}
113 0 0 if ($self->{'_source'}{'file'}) { }
0 0 elsif ($self->{'_source'}{'db'}) { }
121 0 0 if $args
185 0 0 unless my $fh = 'IO::File'->new("$command |")
187 0 0 unless $fh->close
216 0 0 if $defs =~ /;\s*(use|((drop|create)\s+database))\b/i
220 0 0 unless my $fh = 'IO::File'->new("| mysql $args")
230 0 0 unless $fh = 'IO::File'->new("| mysql $args")
261 0 0 unless my $fh = 'IO::File'->new("mysqlshow $args $db|")
264 0 0 unless $fh->close
275 0 0 unless /^\| ([\w-]+)/
286 0 0 $self->{'single-transaction'} ? :
288 0 0 if (my $table_re = $self->{'table-re'})
290 0 0 unless (length $tables)
296 0 0 unless my $fh = 'IO::File'->new("mysqldump -d $single_transaction $args $db $tables 2>&1 |")
304 0 0 if (grep /mysqldump: Got error: .*: Unknown database/, @$defs) { }
0 0 elsif ($exit_status) { }
322 0 0 if $self->{'_tables'}
331 0 0 if ($table =~ /create\s+table/i)
343 0 0 if $auth{$arg}