Condition Coverage

blib/lib/Mojolicious/Plugin/DigestAuth/RequestHandler.pm
Criterion Covered Total %
condition 36 61 59.0


and 3 conditions

line !l l&&!r l&&r condition
53 66 1 1 $self->{'algorithm'} eq $ALGORITHM_MD5_SESS and not %{$self->{'qops'};}
93 0 1 28 $t and $sig
167 0 3 33 $self->_header_complete($header) and $self->_url_matches($header->{'uri'})
3 1 32 $self->_header_complete($header) and $self->_url_matches($header->{'uri'}) and $self->_valid_qop($header->{'qop'}, $header->{'nc'})
4 2 30 $self->_header_complete($header) and $self->_url_matches($header->{'uri'}) and $self->_valid_qop($header->{'qop'}, $header->{'nc'}) and $self->_valid_opaque($header->{'opaque'})
183 0 0 3 $self->_request->method eq 'GET' and $i != -1
0 2 1 $self->_request->method eq 'GET' and $i != -1 and index($auth_url, '?') == -1
236 42 0 0 $part eq '..' and @normalized
268 1 0 32 $self->{'qops'}{$qop} && $nc
282 1 1 27 $opaque and $opaque eq $self->{'opaque'}
294 0 0 36 $header and $header->{'realm'}
0 0 36 $header and $header->{'realm'} and $header->{'nonce'}
0 0 36 $header and $header->{'realm'} and $header->{'nonce'} and $header->{'response'}
0 0 36 $header and $header->{'realm'} and $header->{'nonce'} and $header->{'response'} and $header->{'algorithm'}
346 2 0 26 $hash and $header->{'algorithm'}
0 26 0 $hash and $header->{'algorithm'} and $header->{'algorithm'} eq $ALGORITHM_MD5_SESS

or 2 conditions

line l !l condition
27 70 0 $config->{'realm'} || ''
1 69 $config->{'domain'} || '/'

or 3 conditions

line l !l&&r !l&&!r condition
27 3 67 0 $config->{'algorithm'} || $ALGORITHM_MD5
271 0 0 0 %{$self->{'qops'};} || defined $nc
302 1 36 0 $header->{'stale'} or not $header->{'nonce'}