| blib/lib/MToken/Store.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 16 | 47 | 34.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 398 | 0 | 0 | 1 | $dbh and $dsn =~ /SQLite/i |
| 401 | 0 | 0 | 1 | $file and -e $file |
| 0 | 1 | 0 | $file and -e $file and not -z $file | |
| 413 | 0 | 0 | 1 | $fnew and $do_init |
| line | l | !l | condition |
|---|---|---|---|
| 373 | 1 | 0 | $args{'file'} // "" |
| 417 | 0 | 0 | $DBI::errstr || 'unknown error' |
| 427 | 0 | 0 | $dbh->errstr || 'unknown error' |
| 433 | 0 | 1 | $error // "" |
| 501 | 2 | 0 | $data{'size'} || 0 |
| 515 | 0 | 0 | $dbi->field("SELECT COUNT(`id`) AS `cnt`\nFROM `mtoken`\n") || 0 |
| 525 | 1 | 0 | shift() || 0 |
| 560 | 1 | 0 | shift() || 0 |
| 602 | 1 | 0 | $data{'size'} || 0 |
| 621 | 1 | 0 | shift() || (return ()) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 370 | 0 | 0 | 3 | $args{$_} //= $dda->{$_} |
| 374 | 0 | 1 | 0 | $args{'dsn'} || sprintf('DBI:SQLite:dbname=%s', $file) |
| 501 | 2 | 0 | 0 | $data{'mtime'} || time |
| 602 | 1 | 0 | 0 | $data{'mtime'} || time |
| 0 | 1 | 0 | $data{'id'} || $data{'file'} |