Condition Coverage

blib/lib/HTML/HTML5/Parser/Tokenizer.pm
Criterion Covered Total %
condition 0 453 0.0


and 3 conditions

line !l l&&!r l&&r condition
1324 0 0 0 $action and not $$action{'skip'}
1631 0 0 0 $$self{'is_xml'} and $$is_space{$nc}
1751 0 0 0 $$self{'is_xml'} and $nc == 60
1781 0 0 0 $$self{'is_xml'} and $$is_space{$nc}
1904 0 0 0 $$self{'is_xml'} and $nc == 60
2316 0 0 0 length $$self{'kwd'} == 6 and $nc == 69 || $nc == 101
2352 0 0 0 $$self{'is_xml'} and $$self{'kwd'} ne 'DOCTYP' || $nc == 101
2396 0 0 0 $$self{'kwd'} eq '[CDATA' and $nc == 91
2421 0 0 0 $$self{'is_xml'} and not $$self{'tainted'}
0 0 0 $$self{'is_xml'} and not $$self{'tainted'} and @{[] unless $$self{'open_elements'};} == 0
2778 0 0 0 $state != 102 and $nc == 33
2936 0 0 0 65 <= $nc and $nc <= 90
0 0 0 $$self{'is_xml'} and $nc == 91
3054 0 0 0 65 <= $nc and $nc <= 90
0 0 0 $$self{'is_xml'} and $nc == 91
3169 0 0 0 $nc == 34 and $$self{'ct'}{'type'} == 12 || $$self{'ct'}{'type'} == 13
0 0 0 $nc == 39 and $$self{'ct'}{'type'} == 12 || $$self{'ct'}{'type'} == 13
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1 and $nc == 91
3339 0 0 0 length $$self{'kwd'} == 5 and $nc == 67 || $nc == 99
3373 0 0 0 $$self{'is_xml'} and $$self{'kwd'} ne 'PUBLI' || $nc == 99
3413 0 0 0 length $$self{'kwd'} == 5 and $nc == 77 || $nc == 109
3447 0 0 0 $$self{'is_xml'} and $$self{'kwd'} ne 'SYSTE' || $nc == 109
3487 0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1 and $nc == 91
3815 0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1 and $nc == 91
3968 0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1 and $nc == 91
4114 0 0 0 not $$self{'is_xml'} and $nc == 62
4205 0 0 0 not $$self{'is_xml'} and $nc == 62
4292 0 0 0 $$self{'ct'}{'type'} == 12 and $nc == 78 || $nc == 110
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1
0 0 0 $$self{'is_xml'} and $$self{'ct'}{'type'} == 1 and $nc == 91
4487 0 0 0 $$self{'is_xml'} and $nc == 91
4690 0 0 0 65 <= $nc and $nc <= 90
0 0 0 97 <= $nc and $nc <= 122
4793 0 0 0 48 <= $nc and $nc <= 57
4874 0 0 0 48 <= $nc and $nc <= 57
4917 0 0 0 not $$self{'is_xml'} and $$charref_map{$code}
0 0 0 $$self{'is_xml'} and 55296 <= $code
0 0 0 $$self{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 0 $$self{'is_xml'} and $code == 0
4952 0 0 0 48 <= $nc and $nc <= 57
0 0 0 65 <= $nc and $nc <= 70
0 0 0 97 <= $nc and $nc <= 102
4990 0 0 0 48 <= $nc and $nc <= 57
0 0 0 97 <= $nc and $nc <= 102
0 0 0 65 <= $nc and $nc <= 70
5070 0 0 0 not $$self{'is_xml'} and $$charref_map{$code}
0 0 0 $$self{'is_xml'} and 55296 <= $code
0 0 0 $$self{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 0 $$self{'is_xml'} and $code == 0
5105 0 0 0 65 <= $nc and $nc <= 90
0 0 0 97 <= $nc and $nc <= 122
0 0 0 48 <= $nc and $nc <= 57
0 0 0 $$self{'is_xml'} and not $$is_space{$nc} || {60, 1, 38, 1, -1, 1, 34, 1, 39, 1, 96, 1, 61, 1, $$self{'entity_add'}, 1}->{$nc}
5243 0 0 0 $$self{'entity__match'} < 0 and $$self{'prev_state'} != 0
0 0 0 $$self{'entity__match'} < 0 and $$self{'prev_state'} != 0 and $$self{'prev_state'} != 107
5263 0 0 0 $$self{'prev_state'} != 0 and $$self{'prev_state'} != 107
0 0 0 $$self{'prev_state'} != 0 and $$self{'prev_state'} != 107 and $$self{'entity__match'} < -1
5285 0 0 0 $$self{'is_xml'} and not $$self{'kwd'} =~ /;$/
5957 0 0 0 length $$self{'kwd'} == 5 and $nc == 89 || $nc == 121
6024 0 0 0 length $$self{'kwd'} == 6 and $nc == 84 || $nc == 116
6093 0 0 0 length $$self{'kwd'} == 6 and $nc == 84 || $nc == 116
6163 0 0 0 length $$self{'kwd'} == 7 and $nc == 78 || $nc == 110
6237 0 0 0 $$self{'ct'}{'type'} == 12 and $nc == 37
6300 0 0 0 $$self{'ct'}{'type'} == 12 and $nc == 37
7742 0 0 0 length $$self{'kwd'} == 4 and $nc == 65 || $nc == 97

or 3 conditions

line l !l&&r !l&&!r condition
1316 0 0 0 $$Action[$state][$c] || $$Action[$state][255]
1318 0 0 0 $$XMLAction[$state][$c] || $$Action[$state][$c] || $$XMLAction[$state][255] || $$Action[$state][255]
1490 0 0 0 $state == 122 or $state == 127
0 0 0 $state == 17 or $state == 102
0 0 0 $state == 104 or $state == 24
0 0 0 $state == 27 or $state == 105
0 0 0 $state == 106 or $state == 28
1528 0 0 0 $nch eq $ch or $nch eq $CH
1562 0 0 0 $$is_space{$nc} || {62, 1, 47, 1}->{$nc}
1596 0 0 0 $$is_space{$nc} or $nc == 47
0 0 0 $$is_space{$nc} or $nc == 47 or $nc == 62
2251 0 0 0 $nc == 68 or $nc == 100
2316 0 0 0 $nc == [undef, 79, 67, 84, 89, 80, -2]->[length $$self{'kwd'}] or $nc == [undef, 111, 99, 116, 121, 112, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 69 || $nc == 101
2352 0 0 0 $$self{'kwd'} ne 'DOCTYP' || $nc == 101
3169 0 0 0 $nc == 80 or $nc == 112
0 0 0 $nc == 83 or $nc == 115
0 0 0 $$self{'ct'}{'type'} == 12 || $$self{'ct'}{'type'} == 13
0 0 0 $$self{'ct'}{'type'} == 12 || $$self{'ct'}{'type'} == 13
3339 0 0 0 $nc == [undef, 85, 66, 76, 73, -2]->[length $$self{'kwd'}] or $nc == [undef, 117, 98, 108, 105, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 67 || $nc == 99
3373 0 0 0 $$self{'kwd'} ne 'PUBLI' || $nc == 99
3413 0 0 0 $nc == [undef, 89, 83, 84, 69, -2]->[length $$self{'kwd'}] or $nc == [undef, 121, 115, 116, 101, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 77 || $nc == 109
3447 0 0 0 $$self{'kwd'} ne 'SYSTE' || $nc == 109
4292 0 0 0 $nc == 78 || $nc == 110
4414 0 0 0 $nc == 78 or $nc == 110
4690 0 0 0 $$is_space{$nc} or {60, 1, 38, 1, -1, 1, 34, 1, 39, 1, 96, 1, 61, 1, $$self{'entity_add'}, 1}->{$nc}
0 0 0 $$self{'is_xml'} or 65 <= $nc and $nc <= 90
0 0 0 $$self{'is_xml'} or 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122
4775 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
4854 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
4917 0 0 0 not $$self{'is_xml'} and $$charref_map{$code} or $$self{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 0 not $$self{'is_xml'} and $$charref_map{$code} or $$self{'is_xml'} and 55296 <= $code and $code <= 57343 or $$self{'is_xml'} and $code == 0
4933 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
4952 0 0 0 48 <= $nc and $nc <= 57 or 65 <= $nc and $nc <= 70
0 0 0 48 <= $nc and $nc <= 57 or 65 <= $nc and $nc <= 70 or 97 <= $nc and $nc <= 102
4970 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
5070 0 0 0 not $$self{'is_xml'} and $$charref_map{$code} or $$self{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 0 not $$self{'is_xml'} and $$charref_map{$code} or $$self{'is_xml'} and 55296 <= $code and $code <= 57343 or $$self{'is_xml'} and $code == 0
5086 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
5105 0 0 0 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122
0 0 0 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122 or 48 <= $nc and $nc <= 57
0 0 0 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122 or 48 <= $nc and $nc <= 57 or $nc == 59
0 0 0 $$is_space{$nc} || {60, 1, 38, 1, -1, 1, 34, 1, 39, 1, 96, 1, 61, 1, $$self{'entity_add'}, 1}->{$nc}
0 0 0 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122 or 48 <= $nc and $nc <= 57 or $nc == 59 or $$self{'is_xml'} and not $$is_space{$nc} || {60, 1, 38, 1, -1, 1, 34, 1, 39, 1, 96, 1, 61, 1, $$self{'entity_add'}, 1}->{$nc}
5128 0 0 0 defined $HTML::HTML5::Parser::TagSoupParser::entity2char{$$self{'kwd'}} or $$self{'ge'}{$$self{'kwd'}}
5151 0 0 0 {'amp;', $$self{'level'}{'warn'}, 'quot;', $$self{'level'}{'warn'}, 'lt;', $$self{'level'}{'warn'}, 'gt;', $$self{'level'}{'warn'}, 'apos;', $$self{'level'}{'warn'}}->{$$self{'kwd'}} || $$self{'level'}{'must'}
5307 0 0 0 $$self{'prev_state'} == 0 or $$self{'prev_state'} == 107
5333 0 0 0 $$is_space{$nc} or $nc == 63
0 0 0 $$is_space{$nc} or $nc == 63 or $nc == -1
5628 0 0 0 $$self{'stop_processing'} or $$self{'document'}->xml_standalone
5837 0 0 0 $nc == 69 or $nc == 101
0 0 0 $nc == 65 or $nc == 97
0 0 0 $nc == 78 or $nc == 110
5912 0 0 0 $nc == 78 or $nc == 110
0 0 0 $nc == 76 or $nc == 108
5957 0 0 0 $nc == [undef, undef, 84, 73, 84, -2]->[length $$self{'kwd'}] or $nc == [undef, undef, 116, 105, 116, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 89 || $nc == 121
5990 0 0 0 $$self{'kwd'} ne 'ENTIT' or $nc == 121
6024 0 0 0 $nc == [undef, undef, 69, 77, 69, 78, -2]->[length $$self{'kwd'}] or $nc == [undef, undef, 101, 109, 101, 110, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 84 || $nc == 116
6059 0 0 0 $$self{'kwd'} ne 'ELEMEN' or $nc == 116
6093 0 0 0 $nc == [undef, 84, 84, 76, 73, 83, -2]->[length $$self{'kwd'}] or $nc == [undef, 116, 116, 108, 105, 115, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 84 || $nc == 116
6128 0 0 0 $$self{'kwd'} ne 'ATTLIS' or $nc == 116
6163 0 0 0 $nc == [undef, 79, 84, 65, 84, 73, 79, -2]->[length $$self{'kwd'}] or $nc == [undef, 111, 116, 97, 116, 105, 111, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 78 || $nc == 110
6200 0 0 0 $$self{'kwd'} ne 'NOTATIO' or $nc == 110
7728 0 0 0 $$is_space{$nc} or $nc == -1
0 0 0 $$is_space{$nc} or $nc == -1 or $nc == 62
7742 0 0 0 $nc == [undef, 68, 65, 84, -2]->[length $$self{'kwd'}] or $nc == [undef, 100, 97, 116, -2]->[length $$self{'kwd'}]
0 0 0 $nc == 65 || $nc == 97
7774 0 0 0 $$self{'kwd'} ne 'NDAT' or $nc == 97
8106 0 0 0 $$is_space{$nc} or {60, 1, 38, 1, -1, 1, $$self{'entity_add'}, 1}->{$nc}
8290 0 0 0 $nc == 124 or $nc == 44
8407 0 0 0 $nc == 42 or $nc == 43
0 0 0 $nc == 42 or $nc == 43 or $nc == 63
0 0 0 $nc == 124 or $nc == 44
8524 0 0 0 $nc == 124 or $nc == 44
8622 0 0 0 $nc == 42 or $nc == 43
0 0 0 $nc == 42 or $nc == 43 or $nc == 63