Branch Coverage

blib/lib/Wiki/Toolkit/Setup/MySQL.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
252 0 0 unless $create_sql->{$wanted_schema}
261 0 0 if (scalar keys %tables > 0)
264 0 0 if ($upgrade_schema)
265 0 0 if ($fetch_upgrades{$upgrade_schema})
269 0 0 if ($@)
274 0 0 if ($perm_check)
288 0 0 if ($tables{$required}) { }
293 0 0 unless $dbh->do($sql)
299 0 0 if ($upgrade_schema)
300 0 0 if ($fetch_upgrades{$upgrade_schema}) { }
306 0 0 if (ref $update eq 'CODE') { }
0 0 elsif (ref $update eq 'ARRAY') { }
320 0 0 if $disconnect_required
329 0 0 unless my $sth = $dbh->prepare('SHOW TABLES')
333 0 0 if exists $create_sql->{$wanted_schema}{$table}
374 0 0 unless $dbh->do('DROP TABLE IF EXISTS ' . join(',', keys %{$$create_sql{$Wiki::Toolkit::Setup::MySQL::SCHEMA_VERSION};}))
379 0 0 if $disconnect_required
384 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
389 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
391 0 0 if ($args{'dbh'}) { }
409 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
414 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
422 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
427 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
429 0 0 if ($args{'dbh'}) { }
443 0 0 if $args{'dbhost'}
445 0 0 unless my $dbh = 'DBI'->connect($dsn, $args{'dbuser'}, $args{'dbpass'}, {'PrintError', 1, 'RaiseError', 1, 'AutoCommit', 1})