| blib/lib/WWW/Suffit/AuthDB.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 41 | 97 | 42.2 |
| line | l | !l | condition |
|---|---|---|---|
| 519 | 0 | 0 | $self->raise(500, qq[E1300: Can't load file "$file". File not found]) and return $self |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 565 | 2 | 0 | 0 | $model->dbh and $model->ping |
| 626 | 7 | 0 | 1 | isnt_void($cached_data) and not $forceupdate |
| 675 | 1 | 0 | 0 | isnt_void($cached_data) and not $forceupdate |
| 724 | 1 | 0 | 0 | isnt_void($cached_data) and not $forceupdate |
| 787 | 0 | 2 | 0 | is_hash_ref($cached_data) and is_hash_ref($cached_data->{'data'}) |
| 2 | 0 | 0 | is_hash_ref($cached_data) and is_hash_ref($cached_data->{'data'}) and $cached_data->{'expires'} < $now | |
| 790 | 2 | 0 | 0 | isnt_void($cached_data) and not $forceupdate |
| 804 | 0 | 0 | 0 | $r->{'realmname'} and $base_url_fixed eq $url |
| line | l | !l | condition |
|---|---|---|---|
| 494 | 1 | 0 | $self->max_keys // 1048576 |
| 1 | 0 | $self->expiration // 300 | |
| 524 | 1 | 0 | decode("UTF-8", $file_path->slurp) // "" |
| 551 | 0 | 0 | $! // "unknown error" |
| 596 | 9 | 0 | shift() // "" |
| 597 | 9 | 0 | shift() // "SHA256" |
| 613 | 8 | 0 | shift() // "" |
| 614 | 7 | 1 | shift() // "" |
| 616 | 0 | 8 | shift() || 0 |
| 617 | 2 | 0 | $username || '__anonymous' |
| 662 | 1 | 0 | shift() // "" |
| 663 | 0 | 1 | shift() // "" |
| 665 | 0 | 1 | shift() || 0 |
| 666 | 0 | 0 | $groupname || '__default' |
| 711 | 1 | 0 | shift() // "" |
| 712 | 0 | 1 | shift() // "" |
| 714 | 0 | 1 | shift() || 0 |
| 715 | 0 | 0 | $realmname || '__default' |
| 750 | 1 | 1 | $providers{$prov} //= [] |
| 754 | 2 | 0 | $rec->{'entity'} // "" |
| 2 | 0 | $rec->{'op'} // "" | |
| 2 | 0 | $rec->{'value'} // "" | |
| 776 | 1 | 1 | shift() // "" |
| 778 | 0 | 2 | shift() || 0 |
| 779 | 0 | 0 | $url || '__default' |
| 827 | 0 | 0 | $self->expiration // 300 |
| 983 | 2 | 0 | shift() || 'http://localhost' |
| 985 | 2 | 0 | $uri->host // "localhost" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 494 | 2 | 1 | 0 | $self->{'cache'} ||= "WWW::Suffit::Cache"->new("max_keys", $self->max_keys // 1048576, "expiration", $self->expiration // 300) |
| 502 | 0 | 2 | 0 | $self->dsuri || $self->ds |
| 84 | 2 | 0 | $self->{'model'} ||= "WWW::Suffit::AuthDB::Model"->new($self->dsuri || $self->ds) | |
| 540 | 2 | 0 | 0 | shift() || $self->sourcefile |
| 560 | 0 | 0 | 2 | shift() // $self->cached |