Condition Coverage

blib/lib/ACME/QuoteDB/LoadDB.pm
Criterion Covered Total %
condition 33 59 55.9


and 3 conditions

line !l l&&!r l&&r condition
126 1 8 0 $$self{'file'} and $$self{'data'}
9 0 0 $$self{'file'} and $$self{'data'} and $$self{'dir'}
205 0 7 0 $$hr{'quote'} eq 'Quote' && $$hr{'name'} eq 'Attribution Name' && $$hr{'source'} eq 'Attribution Source' && $$hr{'catg'} eq 'Category' && $$hr{'rating'} eq 'Rating'
228 0 0 182 $$hr{'quote'} and $$hr{'name'}
325 312 0 0 $$self{'verbose'} and $self->get_record('name')
386 29 283 0 $$self{'write_db'} and not $attr_id
449 9 0 1 $$self{'db'} and $$self{'host'}

or 2 conditions

line l !l condition
216 4 3 $$self{'delim'} || ','

or 3 conditions

line l !l&&r !l&&!r condition
57 0 13 0 $$args{'file_encoding'} || $FILE_ENCODING
126 8 1 0 $$self{'file'} || $$self{'data'} || $$self{'dir'}
163 4 3 5 $$self{'file_format'} eq 'csv' or $$self{'file_format'} eq 'tsv'
4 1 0 $$self{'file_format'} eq 'html' or $$self{'file_format'} eq 'custom'
185 0 0 0 $$self{'file_format'} eq 'html' or $$self{'file_format'} eq 'custom'
223 7 0 0 $file || croak($!)
241 58 95 29 $$self{'attr_source'} || $$hr{'source'}
244 87 95 0 $$self{'category'} || $$hr{'catg'}
245 58 95 29 $$self{'rating'} || $$hr{'rating'}
419 568 10 30 $$self{'success'} ||= $flag
507 0 0 0 'DBI'->connect("DBI:mysql:database=$c", $$self{'user'}, $$self{'pass'}) || croak("db cannot be accessed $! $DBI::errstr")
567 9 0 0 'DBI'->connect('dbi:SQLite:dbname=' . $db, '', '') || croak("$db cannot be accessed $! $DBI::errstr")