Branch Coverage

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


line true false branch
20 9 236 if ref $child eq "Mail::AuthenticationResults::Header::Comment"
21 230 6 if ref $child eq "Mail::AuthenticationResults::Header::Entry"
35 176 114 unless defined $self->{'indent_by'}
56 77 183 if ($type eq "Mail::AuthenticationResults::Header::Entry")
57 34 43 unless defined $$self{"indent_type_" . $type}
60 110 73 if ($type eq 'Mail::AuthenticationResults::Header::SubEntry') { }
72 1 elsif ($type eq 'Mail::AuthenticationResults::Header::Comment') { }
61 43 67 unless defined $$self{"indent_type_" . $type}
65 44 28 unless defined $$self{"indent_type_" . $type}
74 2 1 if ($eol =~ /^\r?\n$/) { }
86 276 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 60 unless $self->_HAS_VALUE
160 2 58 unless defined $value
161 2 56 if ref $value ne "Mail::AuthenticationResults::Header::AuthServID"
173 1 125 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 27 if defined $self->fold_at
197 0 30 if defined $self->force_fold_at
208 31 1 if ($self->value) { }
218 58 21 if $sep
224 13 19 if (scalar @{$self->search({"isa", "entry"})->children;} == 0)