Branch Coverage

blib/lib/Net/HTTP/Spore/Middleware/Auth/OAuth.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
40 0 3 unless $self->should_authenticate($req)
50 2 1 unless (defined $oauth_params->{'oauth_token'})
75 1 2 if (defined $req->env->{'QUERY_STRING'})
84 0 3 if (defined $payload)
86 0 0 if (not defined $ct or $ct eq 'application/x-www-form-urlencoded')
99 3 0 if ($port == 80 and $scheme eq 'http')
102 0 0 if (defined $port and defined $scheme and $port == 443 and $scheme eq 'https')
114 0 3 if ($port)
129 19 5 if defined $v
141 0 3 if ($self->realm)
154 3 0 if ($oauth_params->{'oauth_signature_method'} ne 'PLAINTEXT')
163 2 1 if (not $oauth_params->{'oauth_token'}) { }
168 1 0 if ($oauth_params->{'oauth_verifier'}) { }
191 0 3 unless $oauth_params->{'oauth_signature_method'} eq 'PLAINTEXT' or $oauth_params->{'oauth_signature_method'} eq 'HMAC-SHA1'
193 0 3 if ($oauth_params->{'oauth_signature_method'} eq 'PLAINTEXT')