Branch Coverage

lib/Mail/DMARC/Report/Aggregate.pm
Criterion Covered Total %
branch 33 46 71.7


line true false branch
16 155 19 if ref $self->{'metadata'}
22 49 16 unless $policy
23 0 16 if "Mail::DMARC::Policy" ne ref $policy
29 19 16 unless ($record)
33 0 16 if (@extra)
35 0 16 if ("Mail::DMARC::Report::Aggregate::Record" ne ref $record)
75 0 8 unless my $ip = $rec->{'row'}{'source_ip'}
76 0 8 unless my $count = $rec->{'row'}{'count'}
77 0 8 unless $rec->{'row'}{'policy_evaluated'}{'disposition'}
97 8 16 if ($f eq 'header_from') { }
8 8 elsif ($f eq 'envelope_from') { }
8 0 elsif ($f eq 'envelope_to') { }
98 0 8 unless $rec->{'identifiers'}{$f}
101 0 8 unless $rec->{'identifiers'}{$f}
104 4 4 unless $rec->{'identifiers'}{$f}
121 0 16 unless defined $dkim_sig->{$g}
131 0 24 unless defined $spf->{$g}
144 0 6 unless my $pp = $self->policy_published
149 6 30 if ($f eq "sp" and not defined $v)
152 6 30 if ($f eq "pct" and not defined $v)
155 4 32 if ($f eq "fo" and not defined $v)
158 12 24 unless defined $v
176 0 8 if ($reasons and scalar @$reasons)