Branch Coverage

blib/lib/OpenID/Lite/Provider/AssociationBuilder.pm
Criterion Covered Total %
branch 14 24 58.3


line true false branch
48 0 12 unless my $signature_method = 'OpenID::Lite::SignatureMethods'->select_method($type)
60 6 6 if $dumb
67 0 12 unless my $c_sec = $self->secret_of_handle($handle, $dumb, 1)
86 0 4 unless $time =~ /^\d+$/ and $type and $nonce and $nonce_sig80
89 0 4 unless my $secret = $self->secret_of_handle($handle, $dumb)
105 0 20 unless $time =~ /^\d+$/ and $type and $nonce and $nonce_sig80
107 0 20 if $dumb and not $nonce =~ /^STLS\./
109 0 20 unless my $signature_method = 'OpenID::Lite::SignatureMethods'->select_method($type)
118 10 10 $dumb ? :
0 20 unless length $nonce == ($dumb ? 25 : 20)
120 0 20 unless length $nonce_sig80 == 10
123 0 20 unless $no_verify or $nonce_sig80 eq substr($signature_method->hmac_hash_hex(sprintf('%d:%s:%s', $time, $type, $nonce), $s_sec), 0, 10)