Condition Coverage

blib/lib/App/MBUtiny/Collector/DBI.pm
Criterion Covered Total %
condition 12 51 23.5


and 3 conditions

line !l l&&!r l&&r condition
344 0 0 2 $dbh and $dsn =~ /SQLite/i
346 0 0 2 $file and -e $file
0 1 1 $file and -e $file and not -z $file

or 2 conditions

line l !l condition
358 0 0 $DBI::errstr || 'unknown error'
364 0 0 $dbh->errstr || 'unknown error'
415 0 1 $params{'type'} || 0
0 1 $params{'addr'} || '127.0.0.1'
1 0 $params{'status'} || 0
1 0 $params{'size'} || 0
417 0 0 $dberr || $DBI::errstr || 'unknown error'
435 0 0 $params{'type'} || 0
0 0 $params{'addr'} || '127.0.0.1'
439 0 0 $dberr || $DBI::errstr || 'unknown error'
454 0 0 $params{'name'} || ''
455 0 0 $params{'file'} || ''
463 0 0 $dberr || $DBI::errstr || 'unknown error'
480 0 0 $dberr || $DBI::errstr || 'unknown error'
503 0 0 $dberr || $DBI::errstr || 'unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
320 0 2 14 $args{$_} //= $dda->{$_}
323 2 0 0 $args{'file'} || COLLECTOR_DB_FILE()
324 0 2 0 $args{'dsn'} || sprintf('dbi:SQLite:dbname=%s', $file)
500 0 0 0 $params{'start'} || time - 86401