blib/lib/NNexus/DB.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 13 | 46.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
37 | 0 | 1 | 0 | $options{'dbms'} eq 'SQLite' and !(-f $options{'dbname'}) || -z $options{'dbname'} |
54 | 1 | 0 | 1 | defined $$self{'handle'} and $$self{'handle'}->ping |
line | l | !l | condition |
---|---|---|---|
34 | 0 | 1 | $input{'query_cache'} || {} |
57 | 1 | 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") |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
37 | 1 | 0 | 0 | !(-f $options{'dbname'}) || -z $options{'dbname'} |