Condition Coverage

blib/lib/WWW/Suffit/Plugin/ConfigAuth.pm
Criterion Covered Total %
condition 0 80 0.0


and 3 conditions

line !l l&&!r l&&r condition
269 0 0 0 $expiration and -e $file
0 0 0 $expiration and -e $file and $ustat_tm + $expiration > $now
390 0 0 0 length $usr and length $pwd
407 0 0 0 length $pwd and length $sum

or 2 conditions

line l !l condition
197 0 0 $opts //= {}
239 0 0 $args{'username'} || ''
240 0 0 $args{'password'} // ""
242 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
243 0 0 $args{'loginpage'} // ""
244 0 0 $args{'expiration'} || 0
268 0 0 $cache->get($ustat_key) || 0
277 0 0 $self->configauth->users || []
284 0 0 $pwdb->{$username}{'pwd'} // ""
285 0 0 $pwdb->{$username}{'arg'} // ""
296 0 0 $ar->to_hash || {}
299 0 0 $args{'method'} || $self->req->method || 'ANY'
300 0 0 $self->req->url->path->to_string || '/'
304 0 0 $data->{'uid'} ||= 0
307 0 0 $data->{'role'} //= ""
308 0 0 $data->{'email'} //= ""
310 0 0 $data->{'comment'} //= ""
331 0 0 $args{'username'} || ''
332 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
333 0 0 $args{'loginpage'} // ""
389 0 0 $line[0] // ""
0 0 $line[1] // ""
0 0 $line[2] // ""
405 0 0 shift() // ""
406 0 0 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
242 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")
298 0 0 0 $args{'base_url'} || $self->base_url
305 0 0 0 $data->{'username'} //= $username
306 0 0 0 $data->{'name'} //= $username
310 0 0 0 $data->{'email_md5'} //= $data->{'email'} ? md5_sum($data->{'email'}) : ""
332 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")