Condition Coverage

blib/lib/HTML/HTML5/Parser/Charset/DecodeHandle.pm
Criterion Covered Total %
condition 1 169 0.5


and 3 conditions

line !l l&&!r l&&r condition
113 0 0 0 $csdef->{'utf8_encoding_scheme'} and $csdef->{'bom_allowed'}
429 0 0 0 &Encode::find_encoding($obj->{'state_2440'}) and &Encode::find_encoding($obj->{'state_2442'})
439 0 0 0 &Encode::find_encoding($obj->{'state_2440'}) and &Encode::find_encoding($obj->{'state_2442'})
805 0 0 0 $count and substr(${$self->{'char_buffer'};}, -1, 1) eq "\r"
1003 0 0 0 $self->{'state'} eq 'state_2442' || $self->{'state'} eq 'state_2440' and $r =~ /^[\x21-\x7E]/
0 0 0 $self->{'state'} eq 'state_2442' || $self->{'state'} eq 'state_2440' and $r =~ /^[\x21-\x7E]/ and $self->{'byte_buffer'} =~ s/^([\x21-\x7E])//
0 0 0 $r eq "\e" and $self->{'byte_buffer'} =~ s/^\(H//

or 2 conditions

line l !l condition
30 0 0 $_[3] || sub { }
591 0 0 $_[2] || 0
592 0 0 $_[3] || 0
646 0 2740 $_[3] || 0
899 0 0 $_[1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
31 0 0 0 $csdef->{'uri'}{$XML_AUTO_CHARSET} or $obj->{'charset'} eq $XML_AUTO_CHARSET
46 0 0 0 not $csdef->{'ascii8'} or $csdef->{'bom_required'}
66 0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16be'}
0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16be'} or $csdef->{'bom_required'}
86 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or $csdef->{'bom_required'}
134 0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16le'}
0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16le'} or $csdef->{'bom_required'}
154 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian4321'} or $csdef->{'bom_required'}
181 0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16le'}
0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16le'} or not $csdef->{'bom_allowed'}
204 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian4321'} or not $csdef->{'bom_allowed'}
237 0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16be'}
0 0 0 not $csdef->{'ascii16'} or $csdef->{'ascii16be'} or not $csdef->{'bom_allowed'}
260 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or not $csdef->{'bom_allowed'}
291 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'} or $csdef->{'bom_required'}
314 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'} or $csdef->{'bom_required'}
339 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian2143'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'} or $csdef->{'bom_required'}
366 0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'}
0 0 0 not $csdef->{'ascii32'} or $csdef->{'ascii32endian1234'} or $csdef->{'ascii32endian3412'} or $csdef->{'ascii32endian4321'} or $csdef->{'bom_required'}
444 0 0 0 $csdef->{'uri'}{$XML_CHARSET . 'euc-jp'} or $csdef->{'uri'}{$IANA_CHARSET . 'euc-jp'}
0 0 0 $csdef->{'uri'}{$XML_CHARSET . 'shift_jis'} or $csdef->{'uri'}{$IANA_CHARSET . 'shift_jis'}
752 0 0 0 $r eq "\240" or $r eq "\377"
1003 0 0 0 $self->{'state'} eq 'state_2442' || $self->{'state'} eq 'state_2440'