Condition Coverage

blib/lib/App/MonM/Store.pm
Criterion Covered Total %
condition 10 41 24.3


and 3 conditions

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

or 2 conditions

line l !l condition
278 0 1 $args{'file'} || 'monm.db'
312 0 0 $DBI::errstr || 'unknown error'
318 0 0 $dbh->errstr || 'unknown error'
364 0 1 $params{'status'} || 0
366 0 0 $dberr || $DBI::errstr || 'unknown error'
389 1 0 $params{'status'} || 0
391 0 0 $dberr || $DBI::errstr || 'unknown error'
409 0 0 $dberr || $DBI::errstr || 'unknown error'
424 2 0 $params{'name'} || ''
428 0 0 $dberr || $DBI::errstr || 'unknown error'
445 0 0 $dberr || $DBI::errstr || 'unknown error'
464 0 0 $params{'period'} || 0
468 0 0 $dberr || $DBI::errstr || 'unknown error'

or 3 conditions

line l !l&&r !l&&!r condition
275 0 1 7 $args{$_} //= $dda->{$_}
279 0 1 0 $args{'dsn'} || sprintf('dbi:SQLite:dbname=%s', $file)