Condition Coverage

blib/lib/XML/Sig.pm
Criterion Covered Total %
condition 32 45 71.1


and 3 conditions

line !l l&&!r l&&r condition
71 288 3 92 exists $params->{'sig_hash'} and grep {$_ eq $params->{'sig_hash'};} "sha224", "sha256", "sha384", "sha512", "ripemd160"
79 279 0 104 exists $params->{'digest_hash'} and grep {$_ eq $params->{'digest_hash'};} "sha1", "sha224", "sha256", "sha384", "sha512", "ripemd160"
87 196 146 41 defined $self->{'key_type'} and $self->{'key_type'} eq "dsa"
98 380 1 2 exists $params->{'no_xml_declaration'} and $params->{'no_xml_declaration'} == 1
104 187 181 15 not defined $self->{'key_type'} and exists $params->{'hmac_key'}
290 216 2 0 $key_to_verify and $key_to_verify ne $reference
366 0 190 10 not defined $self->{'cert_obj'} and defined $self->{'hmac_key'}
415 0 0 190 $keyinfo_nodeset and $keyinfo_nodeset->size > 0
486 0 0 193 defined $val and length $val
1427 195 0 0 not defined $self->{'key_type'} and defined $self->{'hmac_key'}
1431 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
117 182 5 1 $self->key or $self->{'hmac_key'}
1435 0 0 86 $self->{'sig_hash'} eq "ripemd160" or $self->{'sig_hash'} eq "whirlpool"
1474 26 26 143 $self->{'digest_hash'} eq "sha224" or $self->{'digest_hash'} eq "sha384"