Branch Coverage

blib/lib/Plack/Middleware/Auth/Digest.pm
Criterion Covered Total %
branch 2 18 11.1


line true false branch
21 0 2 if ($self->authenticator and ref $self->authenticator ne 'CODE')
25 0 2 unless ($self->secret)
33 0 0 unless my $auth = $$env{'HTTP_AUTHORIZATION'}
35 0 0 if ($auth =~ /^Digest (.*)/)
39 0 0 if ($$auth{'uri'} ne $$env{'REQUEST_URI'})
44 0 0 if (defined $password and $self->valid_nonce($auth) and $self->digest($password, $auth) eq $$auth{'response'})
48 0 0 if ($self->stale_nonce($auth))
81 0 0 $self->password_hashed ? :
98 0 0 if $params{'stale'}