Branch Coverage

blib/lib/Courriel/Headers.pm
Criterion Covered Total %
branch 17 34 50.0


line true false branch
102 53 2025 lc $name eq 'content-disposition' ? :
132 2078 lc $name eq 'content-type' ? :
161 297 358 unless $self->__key_indices_for(lc $name)
180 54 119 &blessed($value) && $value->isa('Courriel::Header') ? :
186 0 173 if ($last_index) { }
216 0 0 &blessed($value) && $value->isa('Courriel::Header') ? :
299 2091 611 if (defined $1) { }
303 0 611 unless @headers
314 611 0 if length $headers[-1]
315 609 2 if defined $3
320 0 142 if ($pos != length ${$text;})
328 0 0 defined $line ? :
374 0 0 if $skip{lc $header->name}
414 2091 0 unless $text =~ /=\?[\w-]+\?[BQ]\?/i
423 0 0 if (defined $+{'charset'}) { }
448 0 0 unless $chunks[$i]{'is_mime'} and $chunks[$i + 1] and $chunks[$i + 1]{'is_mime'}
461 0 0 if (uc $encoding eq 'B') { }