Condition Coverage

blib/lib/HTML/HTML5/Parser/Tokenizer.pm
Criterion Covered Total %
condition 169 453 37.3


and 3 conditions

line !l l&&!r l&&r condition
1325 7308 27 18098 $action and not $action->{'skip'}
1632 77 0 0 $self->{'is_xml'} and $is_space->{$nc}
1752 76 0 0 $self->{'is_xml'} and $nc == 60
1782 22 0 0 $self->{'is_xml'} and $is_space->{$nc}
1905 22 0 0 $self->{'is_xml'} and $nc == 60
2317 0 394 0 length $self->{'kwd'} == 6 and $nc == 69 || $nc == 101
2353 394 0 0 $self->{'is_xml'} and $self->{'kwd'} ne 'DOCTYP' || $nc == 101
2397 0 0 0 $self->{'kwd'} eq '[CDATA' and $nc == 91
2422 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
2779 0 11 3 $state != 102 and $nc == 33
2937 2 382 8 65 <= $nc and $nc <= 90
384 0 0 $self->{'is_xml'} and $nc == 91
3055 4 1195 31 65 <= $nc and $nc <= 90
1199 0 0 $self->{'is_xml'} and $nc == 91
3170 5 0 0 $nc == 34 and $self->{'ct'}{'type'} == 12 || $self->{'ct'}{'type'} == 13
5 0 0 $nc == 39 and $self->{'ct'}{'type'} == 12 || $self->{'ct'}{'type'} == 13
5 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1
5 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1 and $nc == 91
3340 0 17 0 length $self->{'kwd'} == 5 and $nc == 67 || $nc == 99
3374 17 0 0 $self->{'is_xml'} and $self->{'kwd'} ne 'PUBLI' || $nc == 99
3414 0 10 0 length $self->{'kwd'} == 5 and $nc == 77 || $nc == 109
3448 10 0 0 $self->{'is_xml'} and $self->{'kwd'} ne 'SYSTE' || $nc == 109
3488 2 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1
2 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1 and $nc == 91
3816 2 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1
2 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1 and $nc == 91
3969 3 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1
3 0 0 $self->{'is_xml'} and $self->{'ct'}{'type'} == 1 and $nc == 91
4115 0 9 0 not $self->{'is_xml'} and $nc == 62
4206 0 4 0 not $self->{'is_xml'} and $nc == 62
4293 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
4488 14 0 0 $self->{'is_xml'} and $nc == 91
4691 0 15 12 65 <= $nc and $nc <= 90
0 0 15 97 <= $nc and $nc <= 122
4794 1 2 3 48 <= $nc and $nc <= 57
4875 1 2 3 48 <= $nc and $nc <= 57
4918 0 3 0 not $self->{'is_xml'} and $charref_map->{$code}
3 0 0 $self->{'is_xml'} and 55296 <= $code
3 0 0 $self->{'is_xml'} and 55296 <= $code and $code <= 57343
3 0 0 $self->{'is_xml'} and $code == 0
4953 2 10 46 48 <= $nc and $nc <= 57
2 2 8 65 <= $nc and $nc <= 70
4 0 0 97 <= $nc and $nc <= 102
4991 0 102 166 48 <= $nc and $nc <= 57
100 0 2 97 <= $nc and $nc <= 102
51 3 46 65 <= $nc and $nc <= 70
5071 0 15 39 not $self->{'is_xml'} and $charref_map->{$code}
15 0 0 $self->{'is_xml'} and 55296 <= $code
15 0 0 $self->{'is_xml'} and 55296 <= $code and $code <= 57343
15 0 0 $self->{'is_xml'} and $code == 0
5106 27 100 15 65 <= $nc and $nc <= 90
27 0 100 97 <= $nc and $nc <= 122
4 23 0 48 <= $nc and $nc <= 57
5 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}
5244 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
5264 4 0 1 $self->{'prev_state'} != 0 and $self->{'prev_state'} != 107
4 1 0 $self->{'prev_state'} != 0 and $self->{'prev_state'} != 107 and $self->{'entity__match'} < -1
5286 2 0 0 $self->{'is_xml'} and not $self->{'kwd'} =~ /;$/
5958 0 0 0 length $self->{'kwd'} == 5 and $nc == 89 || $nc == 121
6025 0 0 0 length $self->{'kwd'} == 6 and $nc == 84 || $nc == 116
6094 0 0 0 length $self->{'kwd'} == 6 and $nc == 84 || $nc == 116
6164 0 0 0 length $self->{'kwd'} == 7 and $nc == 78 || $nc == 110
6238 0 0 0 $self->{'ct'}{'type'} == 12 and $nc == 37
6301 0 0 0 $self->{'ct'}{'type'} == 12 and $nc == 37
7743 0 0 0 length $self->{'kwd'} == 4 and $nc == 65 || $nc == 97

or 3 conditions

line l !l&&r !l&&!r condition
1317 10154 7971 7308 $Action->[$state][$c] || $Action->[$state][255]
1319 0 0 0 $XMLAction->[$state][$c] || $Action->[$state][$c] || $XMLAction->[$state][255] || $Action->[$state][255]
1491 9 8 6758 $state == 122 or $state == 127
52 3 3392 $state == 17 or $state == 102
17 15 774 $state == 104 or $state == 24
13 13 722 $state == 27 or $state == 105
10 12 700 $state == 106 or $state == 28
1529 3 463 15 $nch eq $ch or $nch eq $CH
1563 2 74 3 $is_space->{$nc} or {62, 1, 47, 1}->{$nc}
1597 1 2 14 $is_space->{$nc} or $nc == 47
3 14 0 $is_space->{$nc} or $nc == 47 or $nc == 62
2252 168 226 3 $nc == 68 or $nc == 100
2317 842 1128 394 $nc == [undef, 79, 67, 84, 89, 80, -2]->[length $self->{'kwd'}] or $nc == [undef, 111, 99, 116, 121, 112, -2]->[length $self->{'kwd'}]
169 225 0 $nc == 69 || $nc == 101
2353 0 0 0 $self->{'kwd'} ne 'DOCTYP' || $nc == 101
3170 13 4 15 $nc == 80 or $nc == 112
6 4 5 $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
3340 61 7 17 $nc == [undef, 85, 66, 76, 73, -2]->[length $self->{'kwd'}] or $nc == [undef, 117, 98, 108, 105, -2]->[length $self->{'kwd'}]
13 4 0 $nc == 67 || $nc == 99
3374 0 0 0 $self->{'kwd'} ne 'PUBLI' || $nc == 99
3414 30 10 10 $nc == [undef, 89, 83, 84, 69, -2]->[length $self->{'kwd'}] or $nc == [undef, 121, 115, 116, 101, -2]->[length $self->{'kwd'}]
9 1 0 $nc == 77 || $nc == 109
3448 0 0 0 $self->{'kwd'} ne 'SYSTE' || $nc == 109
4293 0 0 0 $nc == 78 || $nc == 110
4415 0 0 0 $nc == 78 or $nc == 110
4691 1 5 91 $is_space->{$nc} or {60, 1, 38, 1, -1, 1, 34, 1, 39, 1, 96, 1, 61, 1, $self->{'entity_add'}, 1}->{$nc}
0 12 15 $self->{'is_xml'} or 65 <= $nc and $nc <= 90
12 0 15 $self->{'is_xml'} or 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122
4776 6 0 0 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
4855 3 0 0 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
4918 0 0 3 not $self->{'is_xml'} and $charref_map->{$code} or $self->{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 3 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
4934 3 0 0 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
4953 46 8 4 48 <= $nc and $nc <= 57 or 65 <= $nc and $nc <= 70
8 0 4 48 <= $nc and $nc <= 57 or 65 <= $nc and $nc <= 70 or 97 <= $nc and $nc <= 102
4971 4 0 0 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
5071 39 0 15 not $self->{'is_xml'} and $charref_map->{$code} or $self->{'is_xml'} and 55296 <= $code and $code <= 57343
0 0 15 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
5087 54 0 0 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
5106 15 100 27 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122
100 0 27 65 <= $nc and $nc <= 90 or 97 <= $nc and $nc <= 122 or 48 <= $nc and $nc <= 57
0 22 5 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}
22 0 5 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}
5129 32 0 105 defined $HTML::HTML5::Parser::TagSoupParser::entity2char{$self->{'kwd'}} or $self->{'ge'}{$self->{'kwd'}}
5163 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'}
5308 26 0 1 $self->{'prev_state'} == 0 or $self->{'prev_state'} == 107
5334 0 0 0 $is_space->{$nc} or $nc == 63
0 0 0 $is_space->{$nc} or $nc == 63 or $nc == -1
5629 0 0 0 $self->{'stop_processing'} or $self->{'document'}->xml_standalone
5838 0 0 0 $nc == 69 or $nc == 101
0 0 0 $nc == 65 or $nc == 97
0 0 0 $nc == 78 or $nc == 110
5913 0 0 0 $nc == 78 or $nc == 110
0 0 0 $nc == 76 or $nc == 108
5958 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
5991 0 0 0 $self->{'kwd'} ne 'ENTIT' or $nc == 121
6025 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
6060 0 0 0 $self->{'kwd'} ne 'ELEMEN' or $nc == 116
6094 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
6129 0 0 0 $self->{'kwd'} ne 'ATTLIS' or $nc == 116
6164 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
6201 0 0 0 $self->{'kwd'} ne 'NOTATIO' or $nc == 110
7729 0 0 0 $is_space->{$nc} or $nc == -1
0 0 0 $is_space->{$nc} or $nc == -1 or $nc == 62
7743 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
7775 0 0 0 $self->{'kwd'} ne 'NDAT' or $nc == 97
8107 0 0 0 $is_space->{$nc} or {60, 1, 38, 1, -1, 1, $self->{'entity_add'}, 1}->{$nc}
8291 0 0 0 $nc == 124 or $nc == 44
8408 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
8525 0 0 0 $nc == 124 or $nc == 44
8623 0 0 0 $nc == 42 or $nc == 43
0 0 0 $nc == 42 or $nc == 43 or $nc == 63