Condition Coverage

blib/lib/XML/Sig.pm
Criterion Covered Total %
condition 30 42 71.4


and 3 conditions

line !l l&&!r l&&r condition
71 497 31 151 exists $params->{'sig_hash'} and grep {$_ eq $params->{'sig_hash'};} "sha224", "sha256", "sha384", "sha512", "ripemd160"
79 475 0 204 exists $params->{'digest_hash'} and grep {$_ eq $params->{'digest_hash'};} "sha1", "sha224", "sha256", "sha384", "sha512", "ripemd160"
87 344 279 56 defined $self->{'key_type'} and $self->{'key_type'} eq "dsa"
98 677 1 1 exists $params->{'no_xml_declaration'} and $params->{'no_xml_declaration'} == 1
104 335 326 18 not defined $self->{'key_type'} and exists $params->{'hmac_key'}
339 0 339 12 not defined $self->{'cert_obj'} and defined $self->{'hmac_key'}
388 0 0 339 $keyinfo_nodeset and $keyinfo_nodeset->size > 0
1031 0 0 0 defined $self->{'dsig_prefix'} and length $self->{'dsig_prefix'}
1435 345 0 0 not defined $self->{'key_type'} and defined $self->{'hmac_key'}
1439 315 0 30 $self->{'sig_hash'} eq "sha1" and $self->{'key_type'} ne "ecdsa"
115 0 28 $self->{'key_type'} eq "dsa" and $self->{'sig_hash'} eq "sha256"

or 3 conditions

line l !l&&r !l&&!r condition
117 331 6 1 $self->key or $self->{'hmac_key'}
1443 12 0 160 $self->{'sig_hash'} eq "ripemd160" or $self->{'sig_hash'} eq "whirlpool"
1482 34 34 243 $self->{'digest_hash'} eq "sha224" or $self->{'digest_hash'} eq "sha384"