Branch Coverage

blib/lib/WWW/OAuth.pm
Criterion Covered Total %
branch 19 36 52.7


line true false branch
28 1 0 ref $_[0] ? :
39 2 0 ref $_[0] ? :
46 0 2 unless defined $client_id and defined $client_secret
49 0 2 unless defined $signer
51 0 2 if ($signature_method eq 'RSA-SHA1' and &blessed($signer))
53 0 0 unless $signer_obj->can('sign')
56 0 2 unless not &blessed($signer) and ref $signer eq 'CODE'
65 1 1 if defined $token
68 2 0 if (defined $extra_params)
69 0 2 unless ref $extra_params eq 'HASH'
71 1 1 unless $_ eq 'realm'
0 2 unless &all(sub { /^oauth_/ unless $_ eq 'realm'; } , keys %$extra_params)
79 0 2 $signature_method eq 'PLAINTEXT' ? :
90 0 0 unless defined $token_secret
96 1 1 unless defined $token_secret
99 2 0 if length($digest) % 4
108 0 2 if $req->content_is_form
110 0 18 unless $WWW::OAuth::a->[0] cmp $WWW::OAuth::b->[0]