Condition Coverage

lib/LEOCHARRE/Database/Base.pm
Criterion Covered Total %
condition 7 33 21.2


and 2 conditions

line l !l condition
116 0 0 debug(q[attribute 'Driver' not present in dbh obj passed]) and return
136 0 0 warn "last insert id on table $tablename returns undef, does table exists?" and return
188 0 0 warn "table $tablename does not exist" and return
196 0 0 carp("table $tablename had no entries") and return ''
0 2 defined $d and scalar @$d
250 0 0 carp(" -ERROR=[$DBI::errstr]\n -make sure mysqld is running\n -wrong credentials?[$dbname,$user,$host]") and return
262 0 0 carp("$DBI::errstr, cant open sqlite connect. []") and return

and 3 conditions

line !l l&&!r l&&r condition
65 1 0 0 defined $key and defined $val
123 0 0 0 defined $dbh and defined $tablename
132 0 0 3 defined $dbh and defined $tablename
186 0 0 2 defined $dbh and defined $tablename

or 2 conditions

line l !l condition
95 6 1 $count ||= 0
246 0 0 $host ||= 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 6 defined $key or defined $val