Condition Coverage

blib/lib/Mail/DKIM/ARC/Verifier.pm
Criterion Covered Total %
condition 48 71 67.6


and 3 conditions

line !l l&&!r l&&r condition
227 4 2 358 $signature->algorithm and $signature->get_algorithm_class($signature->algorithm)
6 0 358 $signature->algorithm and $signature->get_algorithm_class($signature->algorithm) and !$self->{'Strict'} || $signature->algorithm ne 'rsa-sha1'
315 0 0 295 $result &&= $public_key->check_granularity($signature->domain, 0)
339 163 0 5 @{$self->{'signatures'};} == 0 and not defined $self->{'signature_reject_reason'}
370 344 0 0 $sig->result && $sig->result eq 'invalid'
373 161 0 0 @{$self->{'algorithms'};} == 0 and @{$self->{'signatures'};} > 0
434 293 0 2 $keysize < 1024 and $self->{'Strict'}

or 2 conditions

line l !l condition
131 348 0 $self->{'algorithms'} ||= []
159 172 4 $signature->instance || ''
182 163 3 $signature->instance || ''
376 0 0 $self->{'signatures'}[0]->result || 'invalid'
405 146 3 $signature->get_tag('h') || ''
484 130 10 $self->{'seals'} || []
485 129 11 $self->{'messages'} || []
591 357 7 $signature->instance || ''
360 4 $signature->domain || '(none)'
320 44 $signature->result_detail || '?'

or 3 conditions

line l !l&&r !l&&!r condition
161 5 0 171 not $instance =~ /^\d+$/ or $instance < 1
5 0 171 not $instance =~ /^\d+$/ or $instance < 1 or $instance > 1024
184 4 0 162 not $instance =~ /^\d+$/ or $instance < 1
4 0 162 not $instance =~ /^\d+$/ or $instance < 1 or $instance > 1024
227 0 358 0 !$self->{'Strict'} || $signature->algorithm ne 'rsa-sha1'
378 0 0 0 $self->{'signatures'}[0]{'verify_details'} || $self->{'signature_reject_reason'}
446 4 56 227 $algorithm->{'verification_details'} || $@
480 166 140 0 $self->{'signature'} ||= $algorithm->signature
486 130 10 0 @$seals or @$messages
548 1 6 71 not defined $cv or $cv ne "none"