Condition Coverage

blib/lib/Email/MIME/Encode.pm
Criterion Covered Total %
condition 15 19 78.9


and 3 conditions

line !l l&&!r l&&r condition
24 40 2 2 &Scalar::Util::blessed($val) and $val->can("as_mime_string")
47 50 26 24 defined $val && $val =~ /(?:\P{ASCII}|=\?|[^\s]{79,}|^\s+|\s+$)/su

or 2 conditions

line l !l condition
82 11 25 $header_name_length //= 0
83 35 1 $charset //= "UTF-8"

or 3 conditions

line l !l&&r !l&&!r condition
36 11 0 9 _needs_mime_encode($val) or $val =~ /[^\s]{$min_wrap_length,}/u
52 13 0 67 _needs_mime_encode($val) || defined $val && $val =~ /[:;,]/u
166 64 0 0 $result // $text