Branch Coverage

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


line true false branch
20 9 204 if ref $child eq "Mail::AuthenticationResults::Header::Comment"
21 198 6 if ref $child eq "Mail::AuthenticationResults::Header::Entry"
35 145 114 unless defined $self->{'indent_by'}
56 69 161 if ($type eq "Mail::AuthenticationResults::Header::Entry")
57 26 43 unless defined $$self{"indent_type_" . $type}
60 98 63 if ($type eq 'Mail::AuthenticationResults::Header::SubEntry') { }
62 1 elsif ($type eq 'Mail::AuthenticationResults::Header::Comment') { }
61 31 67 unless defined $$self{"indent_type_" . $type}
65 34 28 unless defined $$self{"indent_type_" . $type}
74 2 1 if ($eol =~ /^\r?\n$/) { }
86 245 14 unless defined $self->{'eol'}
120 3 8 if ($style eq 'none') { }
5 3 elsif ($style eq 'entry') { }
1 2 elsif ($style eq 'subentry') { }
1 1 elsif ($style eq 'full') { }
158 0 58 unless $self->_HAS_VALUE
160 2 56 unless defined $value
161 2 54 if ref $value ne "Mail::AuthenticationResults::Header::AuthServID"
173 1 109 if ref $child eq "Mail::AuthenticationResults::Header::SubEntry"
184 0 1 if $self->_HAS_KEY
185 1 0 if $self->value
186 1 0 if ($self->_HAS_CHILDREN)
196 3 26 if defined $self->fold_at
197 0 29 if defined $self->force_fold_at
208 30 1 if ($self->value) { }
218 51 20 if $sep
224 13 18 if (scalar @{$self->search({"isa", "entry"})->children;} == 0)