Branch Coverage

blib/lib/Courriel.pm
Criterion Covered Total %
branch 25 50 50.0


line true false branch
131 0 0 $self->is_multipart ? :
139 0 0 $self->is_multipart ? :
152 0 0 if ($plain_body and $html_body) { }
0 0 elsif ($plain_body) { }
0 0 elsif ($html_body) { }
195 0 0 $subject ? :
217 0 5 unless defined $possible and length $possible
221 3 2 unless ($dt)
223 3 0 unless $natural_parser->success
239 0 7 unless defined $received and length $received
302 3 2 if $_[0]->mime_type eq 'text/plain'
313 0 0 if $_[0]->mime_type eq 'text/html'
327 3 2 if &$match($part)
329 2 0 if $part->is_multipart
342 0 0 if &$match($part)
344 0 0 if $part->is_multipart
388 0 65 if ($is_character)
422 142 1 if (${$text;} =~ /^(.+?)($Courriel::Helpers::LINE_SEP_RE)\g{2}/s) { }
449 0 143 if (@ct > 1)
455 107 36 unless ($ct->mime_type =~ /^multipart/i)
474 0 36 unless defined $boundary and length $boundary
489 31 5 if (defined $all_parts)
493 5 31 unless (@part_text)
511 3 33 defined $preamble && length $preamble && $preamble =~ /\S/ ? :
6 30 defined $epilogue && length $epilogue && $epilogue =~ /\S/ ? :