Condition Coverage

blib/lib/HTML/StripTags.pm
Criterion Covered Total %
condition 48 96 50.0


and 3 conditions

line !l l&&!r l&&r condition
73 0 138 21 ref $string ne 'STRING' and ref $string ne ''
126 0 4 0 $allow and $state == 1
127 0 0 0 $lc ne '"' and $lc ne q[']
139 0 4 0 $allow and $state == 1
140 0 0 0 $lc ne '"' and $lc ne q[']
175 0 0 58 not $br and $lc ne '"'
0 5 53 not $br and $lc ne '"' and $buf[$p - 1] eq '?'
187 0 1 23 $p >= 2 and $buf[$p - 1] eq '-'
1 0 23 $p >= 2 and $buf[$p - 1] eq '-' and $buf[$p - 2] eq '-'
201 39 4 2 $state == 2 and $buf[$p - 1] ne '\\'
16 0 18 $allow and $state == 1
218 9 0 36 $state and $p != 0
9 36 0 $state and $p != 0 and $state == 1 || $buf[$p - 1] ne '\\'
4 32 0 $state and $p != 0 and $state == 1 || $buf[$p - 1] ne '\\' and !$in_q || $buf[$p] eq $in_q
229 13 0 23 $state == 1 and $buf[$p - 1] eq '<'
233 0 0 0 $allow and $state == 1
242 54 0 46 $state == 3 and $p >= 2
54 23 23 $state == 3 and $p >= 2 and $buf[$p - 1] eq '-'
23 0 23 $state == 3 and $p >= 2 and $buf[$p - 1] eq '-' and $buf[$p - 2] eq '!'
251 57 8 53 $state == 1 and $buf[$p - 1] eq '<'
260 297 0 0 $state == 3 and $p > 6
297 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p'
0 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p' and lc $buf[$p - 2] eq 'y'
0 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p' and lc $buf[$p - 2] eq 'y' and lc $buf[$p - 3] eq 't'
0 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p' and lc $buf[$p - 2] eq 'y' and lc $buf[$p - 3] eq 't' and lc $buf[$p - 4] eq 'c'
0 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p' and lc $buf[$p - 2] eq 'y' and lc $buf[$p - 3] eq 't' and lc $buf[$p - 4] eq 'c' and lc $buf[$p - 5] eq 'o'
0 0 0 $state == 3 and $p > 6 and lc $buf[$p - 1] eq 'p' and lc $buf[$p - 2] eq 'y' and lc $buf[$p - 3] eq 't' and lc $buf[$p - 4] eq 'c' and lc $buf[$p - 5] eq 'o' and lc $buf[$p - 6] eq 'd'
274 344 0 107 $state == 2 and $p > 2
344 107 0 $state == 2 and $p > 2 and lc join('', ($buf[$p - 2], $buf[$p - 1])) eq 'xm'
282 655 848 958 $allow and $state == 1

or 3 conditions

line l !l&&r !l&&!r condition
218 30 2 4 $state == 1 || $buf[$p - 1] ne '\\'
16 16 0 !$in_q || $buf[$p] eq $in_q