lib/Sisimai/MIME.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 33 | 48 | 68.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
84 | 2264 | 0 | 403 | $characterset and $encodingname |
108 | 265 | 0 | 1 | exists $heads->{'content-type'} and $heads->{'content-type'} |
116 | 0 | 0 | 1 | $boundary00 and lc($$argv1) =~ m[{"7bit-encoded" => qr/^content-transfer-encoding:[ ]*7bit/m,"html-message" => qr/^content-type:[ ]*text\/html;/m,"only-charset" => qr/^[\s\t]+charset=['"]?([-0-9a-z]+)['"]?\b/,"quoted-print" => qr/^content-transfer-encoding:[ ]*quoted-printable/m,"some-iso2022" => qr/^content-type:[ ]*.+;[ ]*charset=["']?(iso-2022-[-a-z0-9]+)['"]?\b/m,"with-charset" => qr/^content[-]type:[ ]*.+[;][ ]*charset=['"]?([-0-9a-z]+)['"]?\b/}->{'quoted-print'}] |
249 | 4805 | 194 | 0 | $alternates and $mimeformat eq "text/html" |
line | l | !l | condition |
---|---|---|---|
24 | 8698 | 0 | shift() || (return undef) |
103 | 266 | 0 | shift() // (return undef) |
104 | 1 | 265 | shift() // {} |
193 | 35 | 0 | shift() // (return undef) |
209 | 2317 | 0 | shift() || (return undef) |
210 | 2275 | 42 | shift() // -1 |
231 | 5040 | 1 | shift() || (return undef) |
232 | 5040 | 0 | shift() || '' |
258 | 4999 | 0 | $lowerchunk ||= "" |
350 | 1929 | 1 | shift() // (return undef) |
351 | 1929 | 0 | shift() // (return undef) |
392 | 51 | 3510 | $e =~ /\A(.+?)Content-Type:/s or last XCCT |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
67 | 65 | 403 | 0 | $characterset ||= lc $2 |
68 | 65 | 403 | 0 | $encodingname ||= uc $3 |
157 | 1 | 0 | 8 | $lowercased =~ m[{"7bit-encoded" => qr/^content-transfer-encoding:[ ]*7bit/m,"html-message" => qr/^content-type:[ ]*text\/html;/m,"only-charset" => qr/^[\s\t]+charset=['"]?([-0-9a-z]+)['"]?\b/,"quoted-print" => qr/^content-transfer-encoding:[ ]*quoted-printable/m,"some-iso2022" => qr/^content-type:[ ]*.+;[ ]*charset=["']?(iso-2022-[-a-z0-9]+)['"]?\b/m,"with-charset" => qr/^content[-]type:[ ]*.+[;][ ]*charset=['"]?([-0-9a-z]+)['"]?\b/}->{'with-charset'}] or $lowercased =~ m[{"7bit-encoded" => qr/^content-transfer-encoding:[ ]*7bit/m,"html-message" => qr/^content-type:[ ]*text\/html;/m,"only-charset" => qr/^[\s\t]+charset=['"]?([-0-9a-z]+)['"]?\b/,"quoted-print" => qr/^content-transfer-encoding:[ ]*quoted-printable/m,"some-iso2022" => qr/^content-type:[ ]*.+;[ ]*charset=["']?(iso-2022-[-a-z0-9]+)['"]?\b/m,"with-charset" => qr/^content[-]type:[ ]*.+[;][ ]*charset=['"]?([-0-9a-z]+)['"]?\b/}->{'only-charset'}] |
328 | 2418 | 288 | 727 | index($mimeformat, "message/") == 0 or $mimeformat eq "text/rfc822-headers" |