Condition Coverage

blib/lib/WWW/Suffit/Plugin/FileAuth.pm
Criterion Covered Total %
condition 0 83 0.0


and 3 conditions

line !l l&&!r l&&r condition
326 0 0 0 $expiration and -e $file
0 0 0 $expiration and -e $file and $ustat_tm + $expiration > $now
447 0 0 0 length $usr and length $pwd
464 0 0 0 length $pwd and length $sum

or 2 conditions

line l !l condition
228 0 0 $opts //= {}
296 0 0 $args{'username'} || ''
297 0 0 $args{'password'} // ""
299 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
300 0 0 $args{'loginpage'} // ""
301 0 0 $args{'expiration'} || 0
325 0 0 $cache->get($ustat_key) || 0
334 0 0 $self->fileauth->users || []
341 0 0 $pwdb->{$username}{'pwd'} // ""
342 0 0 $pwdb->{$username}{'arg'} // ""
353 0 0 $ar->to_hash || {}
356 0 0 $args{'method'} || $self->req->method || 'ANY'
357 0 0 $self->req->url->path->to_string || '/'
361 0 0 $data->{'uid'} ||= 0
364 0 0 $data->{'role'} //= ""
365 0 0 $data->{'email'} //= ""
367 0 0 $data->{'comment'} //= ""
388 0 0 $args{'username'} || ''
389 0 0 ($args{'referer'} // $self->req->headers->header("Referer")) // ""
390 0 0 $args{'loginpage'} // ""
446 0 0 $line[0] // ""
0 0 $line[1] // ""
0 0 $line[2] // ""
462 0 0 shift() // ""
463 0 0 shift() // ""

or 3 conditions

line l !l&&r !l&&!r condition
241 0 0 0 $pwdb_file ||= path($app->app->datadir, "passwd.db")->to_string
299 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")
355 0 0 0 $args{'base_url'} || $self->base_url
362 0 0 0 $data->{'username'} //= $username
363 0 0 0 $data->{'name'} //= $username
367 0 0 0 $data->{'email_md5'} //= $data->{'email'} ? md5_sum($data->{'email'}) : ""
389 0 0 0 $args{'referer'} // $self->req->headers->header("Referer")