Branch Coverage

lib/Mail/AuthenticationResults/Header.pm
Criterion Covered Total %
branch 49 54 92.5


line true false branch
20 11 244 if ref $child eq "Mail::AuthenticationResults::Header::Comment"
21 238 6 if ref $child eq "Mail::AuthenticationResults::Header::Entry"
35 184 141 unless defined $self->{'indent_by'}
56 92 200 if ($type eq "Mail::AuthenticationResults::Header::Entry")
57 36 56 unless defined $$self{'indent_type_' . $type}
60 119 81 if ($type eq 'Mail::AuthenticationResults::Header::SubEntry') { }
80 1 elsif ($type eq 'Mail::AuthenticationResults::Header::Comment') { }
61 44 75 unless defined $$self{'indent_type_' . $type}
65 46 34 unless defined $$self{'indent_type_' . $type}
74 2 1 if ($eol =~ /^\r?\n$/) { }
86 311 14 unless defined $self->{'eol'}
120 3 9 if ($style eq 'none') { }
5 4 elsif ($style eq 'entry') { }
1 3 elsif ($style eq 'subentry') { }
2 1 elsif ($style eq 'full') { }
158 0 60 unless $self->_HAS_VALUE
160 2 58 unless defined $value
161 2 56 if ref $value ne "Mail::AuthenticationResults::Header::AuthServID"
173 2 130 if ref $child eq "Mail::AuthenticationResults::Header::SubEntry"
184 0 2 if $self->_HAS_KEY
185 2 0 if $self->value
186 2 0 if ($self->_HAS_CHILDREN)
196 3 30 if defined $self->fold_at
197 0 33 if defined $self->force_fold_at
208 32 3 if ($self->value) { }
218 71 24 if $sep
224 13 22 if (scalar @{$self->search({"isa", "entry"})->children;} == 0)