Branch Coverage

blib/lib/Data/Phrasebook/Loader/DBI.pm
Criterion Covered Total %
branch 30 30 100.0


line true false branch
110 13 1 if $file
111 3 11 if $dict
113 1 13 unless $$self{'file'}
115 1 12 unless $$self{'file'}{'dbtable'}
119 2 10 unless $$self{'file'}{'dbcolumns'} and scalar @{$$self{'file'}{'dbcolumns'};} >= 2
121 6 4 if defined $$self{'file'}{'dbh'}
124 1 3 unless $$self{'file'}{'dsn'}
126 2 1 unless $$self{'file'}{'dbuser'} and $$self{'file'}{'dbpass'}
147 5 10 unless $key
154 6 4 if ($$self{'file'}{'dbcolumns'}[2] and $$self{'dict'})
155 2 4 ref $$self{'dict'} eq 'ARRAY' ? :
164 3 5 if @row
174 2 5 if @row
189 1 1 unless $$self{'file'}{'dbcolumns'}[2]
233 4 6 if defined $$self{'dbh'}