blib/lib/HTML/Encoding.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 61 | 18.0 |
line | l | !l | condition |
---|---|---|---|
340 | 0 | 39 | $char = $data{$param} and last |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
163 | 0 | 0 | 0 | defined $char and length $char |
191 | 0 | 0 | 0 | $end > 0 and $str >= 0 |
0 | 0 | 0 | $end > 0 and $str >= 0 and $end > $str | |
329 | 1 | 0 | 41 | defined $text and length $text |
381 | 0 | 0 | 0 | defined $enco and length $enco |
411 | 0 | 0 | 0 | @xml and defined $xml[0] |
465 | 0 | 0 | 0 | defined $txml and $mess->content_type =~ /$is_t_xml/ |
line | l | !l | condition |
---|---|---|---|
221 | 0 | 0 | $o{'whitespace'} || ['CR', 'LF', 'TB', 'SP'] |
397 | 0 | 2 | $o{'parser_options'} || {} |
449 | 0 | 42 | $o{'html_default'} || 'ISO-8859-1' |
450 | 0 | 42 | $o{'xml_default'} || 'UTF-8' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
174 | 0 | 0 | 0 | $o{'encodings'} || $DEFAULT_ENCODINGS |
220 | 0 | 0 | 0 | $o{'encodings'} || $DEFAULT_ENCODINGS |
272 | 0 | 0 | 0 | $decl =~ /encoding$ws=$ws'([^']+)'/i or $decl =~ /encoding$ws=$ws"([^"]+)"/i |
295 | 0 | 0 | 0 | $o{'encodings'} || $DEFAULT_ENCODINGS |
365 | 0 | 0 | 0 | $o{'encodings'} || $DEFAULT_ENCODINGS |
396 | 2 | 0 | 0 | $o{'encodings'} || $DEFAULT_ENCODINGS |
445 | 0 | 0 | 42 | $o{'encodings'} || $DEFAULT_ENCODINGS |
446 | 0 | 42 | 0 | $o{'is_html'} || qr"^text/html$"i |
447 | 0 | 42 | 0 | $o{'is_xml'} || qr"^.+/(?:.+\+)?xml$"i |
448 | 0 | 42 | 0 | $o{'is_text_xml'} || qr"^text/(?:.+\+)?xml$"i |