| blib/lib/MPMinusX/AuthSsn.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 30 | 66 | 45.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 337 | 0 | 0 | 1 | $self->{'session'} && ref $self->{'session'} eq 'HASH' |
| 346 | 1 | 0 | 0 | -e $sfile and -s _ |
| 403 | 0 | 0 | 4 | $callback and ref $callback eq 'CODE' |
| 419 | 0 | 0 | 2 | $callback and ref $callback eq 'CODE' |
| 443 | 0 | 0 | 2 | $callback and ref $callback eq 'CODE' |
| 519 | 0 | 0 | 3 | defined $koef and defined $d |
| line | l | !l | condition |
|---|---|---|---|
| 295 | 0 | 3 | shift() || undef |
| 296 | 0 | 3 | shift() || undef |
| 300 | 0 | 3 | value($authconf, 'sidkey') || 'usid' |
| 301 | 0 | 3 | value($authconf, 'tplkey') || 'authorized' |
| 302 | 0 | 3 | value($authconf, 'tplpfx') || '' |
| 306 | 0 | 3 | value($authconf, 'expires') || '+1h' |
| 333 | 0 | 1 | shift() || undef |
| 334 | 1 | 0 | shift() || 0 |
| 434 | 2 | 0 | $self->get('time_access') || 0 |
| 455 | 1 | 0 | $$self{$self->{'sidkey'}} || undef |
| 461 | 2 | 0 | $expires || 0 |
| 465 | 3 | 10 | shift() || 0 |
| 466 | 9 | 4 | shift() || '' |
| 479 | 6 | 0 | shift() || (return) |
| 480 | 5 | 1 | $self->{'session'}{$key} || undef |
| 484 | 4 | 0 | shift() || (return 0) |
| 495 | 0 | 0 | shift() || $self->reason || 'DEFAULT' |
| 503 | 3 | 0 | shift() || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 303 | 0 | 3 | 0 | value($authconf, 'dir') || 'File::Spec'->catdir($m->conf('document_root'), 'sessions') |
| 304 | 3 | 0 | 0 | value($authconf, 'file') || 'File::Spec'->catfile($s_dir, 'sessions.db') |
| 305 | 0 | 3 | 0 | value($authconf, 'dsn') || sprintf('dbi:SQLite:dbname=%s', $s_file) |
| 307 | 0 | 3 | 0 | $expires ||= $s_expires |