Branch Coverage

lib/Mail/AuthenticationResults/FoldableHeader.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
31 29 72 if exists $self->{'eol'}
45 29 72 if exists $self->{'indent'}
59 29 72 if exists $self->{'sub_indent'}
73 87 331 if exists $self->{'try_fold_at'}
87 0 0 if exists $self->{'force_fold_at'}
146 260 939 if ($part->is eq 'space' and $last_type ne 'space')
148 260 0 if @$stack
154 95 6 if @$stack
163 111 271 if ($section->[0]->is eq 'space' and $section->[0]->value eq $eol)
166 84 27 unless (exists $section->[0]{'_folded'})
167 81 3 if ($section->[1]->is eq 'space')
177 21 361 if ($fold_length + $section_length > $self->try_fold_at)
178 15 6 if ($fold_length > 0) { }
205 24 6 if ($part_length + $first_section_length < $self->try_fold_at) { }
215 6 0 if (grep {$_->is ne 'space';} @$first_section and grep {$_->is ne 'space';} @$second_section)