Branch Coverage

blib/lib/Wiki/Toolkit/Setup/SQLite.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
175 0 0 unless $create_sql->{$wanted_schema}
184 0 0 if (scalar keys %tables > 0)
187 0 0 if ($upgrade_schema)
188 0 0 if ($fetch_upgrades{$upgrade_schema})
203 0 0 if ($tables{$required}) { }
208 0 0 unless $dbh->do($sql)
214 0 0 if ($upgrade_schema)
215 0 0 if ($fetch_upgrades{$upgrade_schema}) { }
221 0 0 if (ref $update eq 'CODE') { }
0 0 elsif (ref $update eq 'ARRAY') { }
235 0 0 if $disconnect_required
247 0 0 unless my $sth = $dbh->prepare($sql)
290 0 0 unless $dbh->do("DROP TABLE $tableref->[0]")
295 0 0 if $disconnect_required
300 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
305 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
307 0 0 if ($args{'dbh'}) { }
320 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
325 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
333 0 0 if (ref $_[0] and ref $_[0] eq 'DBI::db')
338 0 0 if (ref $_[0] and ref $_[0] eq 'HASH')
340 0 0 if ($args{'dbh'}) { }
353 0 0 unless my $dbh = 'DBI'->connect("dbi:SQLite:dbname=$args{'dbname'}", '', '', {'PrintError', 1, 'RaiseError', 1, 'AutoCommit', 1})