Branch Coverage

lib/Mail/DMARC/Result.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
22 52 22 unless ($policy)
23 0 52 unless (defined $self->{'published'})
31 0 22 unless $policy->{'domain'}
37 5 47 if 1 == scalar @_
39 6 41 if 0 == grep({/^$_[1]$/xi;} "reject", "quarantine", "none")
44 44 42 if 1 == scalar @_
45 4 38 if 0 == grep({/^$_[1]$/xi;} "pass", "fail")
50 0 14 if 1 == scalar @_
52 4 10 if 0 == grep({/^$_[1]$/xi;} "relaxed", "strict")
57 0 7 if 1 == scalar @_
62 26 39 if 1 == scalar @_
63 4 35 if 0 == grep({/^$_[1]$/xi;} "pass", "fail")
68 2 8 if 1 == scalar @_
69 0 8 if 0 == grep({/^$_[1]$/xi;} "relaxed", "strict")
74 0 34 if 1 == scalar @_
75 4 30 if 0 == grep({/^$_[1]$/xi;} "pass", "fail", "none")
81 8 21 unless scalar @args