Branch Coverage

blib/lib/Net/SAML2/Binding/Redirect.pm
Criterion Covered Total %
branch 26 40 65.0


line true false branch
54 9 5 if ($self->param eq 'SAMLRequest') { }
5 0 elsif ($self->param eq 'SAMLResponse') { }
55 1 8 unless $self->has_url
56 1 7 unless $self->has_key or $self->insecure
59 0 5 unless $self->has_cert
88 0 4 unless (defined $request)
102 3 1 if defined $relaystate
104 2 2 if $self->insecure
118 2 0 $self->sig_hash eq 'sha1' ? :
133 1 2 if ($self->insecure)
156 15 6 if exists $params{$p}
168 1 6 defined $params{'RelayState'} ? :
178 0 7 if ($sigalg eq 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256') { }
0 7 elsif ($sigalg eq 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha224') { }
0 7 elsif ($sigalg eq 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384') { }
0 7 elsif ($sigalg eq 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha512') { }
7 0 elsif ($sigalg eq 'http://www.w3.org/2000/09/xmldsig#rsa-sha1') { }
190 0 0 if $self->debug
193 7 0 if $rsa_pub->verify($signed, $sig)
195 0 0 if $self->debug