Condition Coverage

blib/lib/XML/Sig.pm
Criterion Covered Total %
condition 35 51 68.6


and 3 conditions

line !l l&&!r l&&r condition
72 289 3 92 exists $params->{'sig_hash'} and grep {$_ eq $params->{'sig_hash'};} "sha224", "sha256", "sha384", "sha512", "ripemd160"
80 280 0 104 exists $params->{'digest_hash'} and grep {$_ eq $params->{'digest_hash'};} "sha1", "sha224", "sha256", "sha384", "sha512", "ripemd160"
88 196 0 188 defined $self->{'key_type'} and check_dsa_version()
196 147 41 defined $self->{'key_type'} and check_dsa_version() and $self->{'key_type'} eq "dsa"
99 381 1 2 exists $params->{'no_xml_declaration'} and $params->{'no_xml_declaration'} == 1
105 188 181 15 not defined $self->{'key_type'} and exists $params->{'hmac_key'}
291 216 2 0 $key_to_verify and $key_to_verify ne $reference
367 0 190 10 not defined $self->{'cert_obj'} and defined $self->{'hmac_key'}
416 0 0 190 $keyinfo_nodeset and $keyinfo_nodeset->size > 0
487 0 0 193 defined $val and length $val
1463 195 0 0 not defined $self->{'key_type'} and defined $self->{'hmac_key'}
1467 173 0 22 $self->{'sig_hash'} eq "sha1" and $self->{'key_type'} ne "ecdsa"
67 0 20 $self->{'key_type'} eq "dsa" and $self->{'sig_hash'} eq "sha256"

or 3 conditions

line l !l&&r !l&&!r condition
118 183 5 1 $self->key or $self->{'hmac_key'}
884 0 0 282 not defined $ver or "version"->parse($ver) lt "version"->parse("0.20")
1471 0 0 86 $self->{'sig_hash'} eq "ripemd160" or $self->{'sig_hash'} eq "whirlpool"
1510 26 26 143 $self->{'digest_hash'} eq "sha224" or $self->{'digest_hash'} eq "sha384"