Condition Coverage

blib/lib/Data/Phrasebook/Loader/DBI.pm
Criterion Covered Total %
condition 11 12 91.6


and 3 conditions

line !l l&&!r l&&r condition
119 1 1 10 $$self{'file'}{'dbcolumns'} and scalar @{$$self{'file'}{'dbcolumns'};} >= 2
126 1 1 1 $$self{'file'}{'dbuser'} and $$self{'file'}{'dbpass'}
154 2 2 6 $$self{'file'}{'dbcolumns'}[2] and $$self{'dict'}

or 3 conditions

line l !l&&r !l&&!r condition
123 6 4 0 $$self{'dbh'} ||= do { croak('No DSN specified for a database connection') unless $$self{'file'}{'dsn'}; croak('DB user details missing') unless $$self{'file'}{'dbuser'} and $$self{'file'}{'dbpass'}; 'DBI'->connect($$self{'file'}{'dsn'}, $$self{'file'}{'dbuser'}, $$self{'file'}{'dbpass'}, {'RaiseError', 1, 'AutoCommit', 1}) }