Condition Coverage

blib/lib/WWW/Suffit/Plugin/SuffitAuth.pm
Criterion Covered Total %
condition 0 70 0.0


and 3 conditions

line !l l&&!r l&&r condition
462 0 0 0 $expiration and -e $public_key_file
0 0 0 $expiration and -e $public_key_file and &WWW::Suffit::Plugin::SuffitAuth::stat($public_key_file)->mtime + $expiration < $now
527 0 0 0 $expiration and -e $file
0 0 0 $expiration and -e $file and $ustat_tm + $expiration > $now

or 2 conditions

line l !l condition
401 0 0 $opts //= {}
402 0 0 $opts->{'configsection'} || 'suffitauth'
403 0 0 $opts->{'expiration'} // 3600
404 0 0 $opts->{'cache_expiration'} // 300
405 0 0 $opts->{'public_key_file'} || 'auth_public.key'
415 0 0 $opts->{'userfile_format'} || 'u.%s.json'
451 0 0 $client->res->json('/code') || 'E7002'
452 0 0 $client->apierr // "unknown error"
467 0 0 $client->res->json('/code') || 'E7003'
468 0 0 $client->apierr // "unknown error"
495 0 0 $args{'username'} || ''
496 0 0 $args{'password'} // ""
498 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
499 0 0 $args{'loginpage'} // ""
500 0 0 parse_time_offset($args{'expiration'} || 0) || $self->suffitauth->options->{'expiration'} || 0
526 0 0 $cache->get($ustat_key) || 0
537 0 0 $client->res->json('/code') || 'E7005'
546 0 0 $args{'method'} || $self->req->method || 'ANY'
555 0 0 $client->res->json('/code') || 'E7006'
582 0 0 $args{'username'} || ''
583 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
584 0 0 $args{'loginpage'} // ""
647 0 0 $args{'username'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
498 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")
501 0 0 0 $args{'address'} || $self->remote_ip($self->app->trustedproxies)
546 0 0 0 $args{'base_url'} || $self->base_url
583 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")