Branch Coverage

blib/lib/Qudo/Test.pm
Criterion Covered Total %
branch 3 34 8.8


line true false branch
48 48 0 if $@
49 0 0 if $innodb and not has_innodb($dbh)
59 0 24 if $ENV{'SKIP_SQLITE'}
60 24 0 unless $rv
70 0 0 unless defined $init
74 0 0 if ($init)
99 0 0 if ($ENV{'USE_MYSQL'})
103 0 0 unless my $dbh = 'DBI'->connect(dsn_for($db), 'root', '', {'RaiseError', 1, 'PrintError', 0})
110 0 0 $ENV{'USE_MYSQL'} ? :
112 0 0 if $ENV{'USE_MYSQL'}
129 0 0 unless open my $fh, '<', $file
137 0 0 unless return 'DBI'->connect('DBI:mysql:mysql', 'root', '', {'RaiseError', 1})
147 0 0 if ($ENV{'USE_MYSQL'}) { }
178 0 0 if ($ENV{'USE_MYSQL'}) { }
182 0 0 unless -e $file
183 0 0 unless unlink $file
191 0 0 unless $dbh->do("CREATE TABLE IF NOT EXISTS $tmpname (i int) ENGINE=INNODB")