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
390 0 65 if ($is_character)
424 142 1 if (${$text;} =~ /^(.+?)($Courriel::Helpers::LINE_SEP_RE)\g{2}/s) { }
451 0 143 if (@ct > 1)
457 107 36 unless ($ct->mime_type =~ /^multipart/i)
476 0 36 unless defined $boundary and length $boundary
491 31 5 if (defined $all_parts)
495 5 31 unless (@part_text)
513 3 33 defined $preamble && length $preamble && $preamble =~ /\S/ ? :
6 30 defined $epilogue && length $epilogue && $epilogue =~ /\S/ ? :