Condition Coverage

blib/lib/NNexus/DB.pm
Criterion Covered Total %
condition 7 13 53.8


and 3 conditions

line !l l&&!r l&&r condition
37 0 8 0 $options{'dbms'} eq 'SQLite' and !(-f $options{'dbname'}) || -z $options{'dbname'}
54 8 0 22 defined $$self{'handle'} and $$self{'handle'}->ping

or 2 conditions

line l !l condition
34 0 8 $input{'query_cache'} || {}
57 8 0 'DBI'->connect('DBI:' . $$self{'dbms'} . ':' . $$self{'dbname'}, $$self{'dbuser'}, $$self{'dbpass'}, {'host', $$self{'dbhost'}, 'RaiseError', 1, 'AutoCommit', 1}) || die("Could not connect to database: $DBI::errstr")

or 3 conditions

line l !l&&r !l&&!r condition
37 4 0 4 !(-f $options{'dbname'}) || -z $options{'dbname'}