Branch Coverage

blib/lib/WWW/Suffit/Plugin/SuffitAuth.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
406 0 0 unless path($public_key_file)->is_abs
450 0 0 unless ($client->check)
462 0 0 if $expiration and -e $public_key_file and &WWW::Suffit::Plugin::SuffitAuth::stat($public_key_file)->mtime + $expiration < $now
463 0 0 if (-e $public_key_file) { }
466 0 0 unless ($client->pubkey(1))
478 0 0 unless (-e $public_key_file)
492 0 0 ref $_[0] eq 'HASH' ? :
0 0 scalar(@_) % 2 ? :
0 0 scalar @_ ? :
497 0 0 if length $password
516 0 0 unless (length $username)
527 0 0 if ($expiration and -e $file and $ustat_tm + $expiration > $now)
536 0 0 unless ($client->authn($username, $password, $address))
546 0 0 unless ($client->authz($args{'method'} || $self->req->method || 'ANY', $args{'base_url'} || $self->base_url, {"username", $username, "address", $address, "verbose", 1}))
565 0 0 unless (-e $file)
581 0 0 ref $_[0] eq 'HASH' ? :
0 0 scalar(@_) % 2 ? :
0 0 scalar @_ ? :
606 0 0 unless (length $username)
624 0 0 unless ($user_data)
625 0 0 -e $file ? :
632 0 0 unless ($user_data->{'uid'})
646 0 0 ref $_[0] eq 'HASH' ? :
0 0 scalar(@_) % 2 ? :
0 0 scalar @_ ? :
658 0 0 unless (length $username)
676 0 0 if -e $file