Condition Coverage

blib/lib/DBIx/TempDB/Util.pm
Criterion Covered Total %
condition 35 60 58.3


or 2 conditions

line l !l condition
13 0 16 $ENV{'DBIX_TEMP_DB_DEBUG'} || 0
14 1 15 $ENV{'DBIX_TEMP_DB_KILL_SLEEP_INTERVAL'} || 2
33 1 0 shift() // 'fork'
58 1 7 $opt{'AutoCommit'} //= 1
59 0 8 $opt{'AutoInactiveDestroy'} //= 1
60 2 6 $opt{'PrintError'} //= 0
61 0 8 $opt{'RaiseError'} //= 1
62 0 8 $opt{'mysql_enable_utf8'} //= 1
79 1 5 $opt{'AutoCommit'} //= 1
80 2 4 $opt{'AutoInactiveDestroy'} //= 1
81 0 6 $opt{'PrintError'} //= 0
82 0 6 $opt{'RaiseError'} //= 1
96 0 1 $opt{'AutoCommit'} //= 1
97 0 1 $opt{'AutoInactiveDestroy'} //= 1
98 0 1 $opt{'PrintError'} //= 0
99 0 1 $opt{'RaiseError'} //= 1
100 0 1 $opt{'sqlite_unicode'} //= 1
137 0 0 fork // die("[TempDB:$$] Couldn't fork: $!")

or 3 conditions

line l !l&&r !l&&!r condition
24 5 4 6 $database_name //= $url->dbname
114 0 0 0 fork // confess("Couldn't fork: $!")
189 26 29 16 $sql =~ /^(\s+)/s or $sql =~ /^(\w+)/
5 0 11 $sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p
5 0 11 $sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]p
0 0 11 $sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]p or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/p
0 0 11 $sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]p or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/p or $sql =~ /^"(?:[^"\\]*|\\(?:.|\n)|"")*(?:"|\z)/p
0 0 11 $sql =~ /^--.*(?:\n|\z)/p or $sql =~ /^\#.*(?:\n|\z)/p or $sql =~ m[^/\*(?:[^\*]|\*[^/])*(?:\*/|\*\z|\z)]p or $sql =~ /^'(?:[^'\\]*|\\(?:.|\n)|'')*(?:'|\z)/p or $sql =~ /^"(?:[^"\\]*|\\(?:.|\n)|"")*(?:"|\z)/p or $sql =~ /^`(?:[^`]*|``)*(?:`|\z)/p