Condition Coverage

blib/lib/CharsetDetector.pm
Criterion Covered Total %
condition 102 168 60.7


and 3 conditions

line !l l&&!r l&&r condition
7911 8 0 2 defined $_[1] && $len > $_[1]
7943 0 0 0 defined $_[1] && $len > $_[1]
8060 0 0 0 defined $_[1] && $len > $_[1]
8269 99 0 164 $$bytes[$j] >= 0 and $$bytes[$j] < 128
8273 43 33 23 -64 <= $$bytes[$j] and $$bytes[$j] <= -33
76 0 23 -64 <= $$bytes[$j] and $$bytes[$j] <= -33 and $j + 1 < $k
33 0 23 -64 <= $$bytes[$j] and $$bytes[$j] <= -33 and $j + 1 < $k and -128 <= $$bytes[$j + 1]
0 10 13 -64 <= $$bytes[$j] and $$bytes[$j] <= -33 and $j + 1 < $k and -128 <= $$bytes[$j + 1] and $$bytes[$j + 1] <= -65
8283 53 2 31 -32 <= $$bytes[$j] and $$bytes[$j] <= -17
55 0 31 -32 <= $$bytes[$j] and $$bytes[$j] <= -17 and $j + 2 < $k
2 0 31 -32 <= $$bytes[$j] and $$bytes[$j] <= -17 and $j + 2 < $k and -128 <= $$bytes[$j + 1]
0 3 28 -32 <= $$bytes[$j] and $$bytes[$j] <= -17 and $j + 2 < $k and -128 <= $$bytes[$j + 1] and $$bytes[$j + 1] <= -65
3 0 28 -32 <= $$bytes[$j] and $$bytes[$j] <= -17 and $j + 2 < $k and -128 <= $$bytes[$j + 1] and $$bytes[$j + 1] <= -65 and -128 <= $$bytes[$j + 2]
3 5 23 -32 <= $$bytes[$j] and $$bytes[$j] <= -17 and $j + 2 < $k and -128 <= $$bytes[$j + 1] and $$bytes[$j + 1] <= -65 and -128 <= $$bytes[$j + 2] and $$bytes[$j + 2] <= -65
8305 3 0 0 $i > 95 and $l > 30
8315 0 6 0 (scalar @$bytes <= 1 || -2 != $$bytes[0] || -1 != $$bytes[1]) && (-1 != $$bytes[0] || -2 != $$bytes[1])
8335 21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -9
21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -9 and -95 <= $$bytes[$i + 1]
0 4 32 -95 <= $$bytes[$i] and $$bytes[$i] <= -9 and -95 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= -2
0 0 25 -127 <= $$bytes[$i] and $$bytes[$i] <= -2
0 25 0 -127 <= $$bytes[$i] and $$bytes[$i] <= -2 and -128 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2 || 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126
8345 15 0 11 15 <= $i1 and $i1 < 55
8365 12 0 13 64 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= 126
8402 21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -7
21 36 0 -95 <= $$bytes[$i] and $$bytes[$i] <= -7 and 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126 || -95 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2
8413 32 0 4 64 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= 126
8420 1 10 23 3 <= $i1 and $i1 <= 37
8452 21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -2
21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -2 and -95 <= $$bytes[$i + 1]
0 4 32 -95 <= $$bytes[$i] and $$bytes[$i] <= -2 and -95 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= -2
8461 0 0 8 15 <= $i1 and $i1 < 55
8484 18 131 0 $i + 3 < $len and $$bytes[$i] == 27
149 0 0 $i + 3 < $len and $$bytes[$i] == 27 and $$bytes[$i + 1] == 36
131 0 0 $i + 3 < $len and $$bytes[$i] == 27 and $$bytes[$i + 1] == 36 and $$bytes[$i + 2] == 41
0 0 0 $i + 3 < $len and $$bytes[$i] == 27 and $$bytes[$i + 1] == 36 and $$bytes[$i + 2] == 41 and $$bytes[$i + 3] == 67
8500 12 145 2 $i + 2 < $len and $$bytes[$i] == 27
157 0 2 $i + 2 < $len and $$bytes[$i] == 27 and $$bytes[$i + 1] == 36
145 0 2 $i + 2 < $len and $$bytes[$i] == 27 and $$bytes[$i + 1] == 36 and $$bytes[$i + 2] == 66
8527 0 77 0 $i + 1 < $j and -127 <= $$bytes[$i] && $$bytes[$i] <= -97 || -32 <= $$bytes[$i] && $$bytes[$i] <= -17
45 32 0 $i + 1 < $j and -127 <= $$bytes[$i] && $$bytes[$i] <= -97 || -32 <= $$bytes[$i] && $$bytes[$i] <= -17 and 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126 || -128 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -4
8561 0 0 32 $i1 < 94 and $j1 < 94
0 30 2 $i1 < 94 and $j1 < 94 and $$JPFreq[$i1][$j1] != 0
8595 21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -2
21 0 36 -95 <= $$bytes[$i] and $$bytes[$i] <= -2 and -95 <= $$bytes[$i + 1]
0 4 32 -95 <= $$bytes[$i] and $$bytes[$i] <= -2 and -95 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= -2
8604 15 0 13 15 <= $i1 and $i1 < 55

or 3 conditions

line l !l&&r !l&&!r condition
8036 0 0 3 $charset eq '' or $charset eq 'iso-8859-1'
8169 0 0 0 $charset eq '' or $charset eq 'iso-8859-1'
8190 1 1 8 $_[0] == $$_encoding{'utf8'} or $_[0] == $$_encoding{'cp936'}
2 1 7 $_[0] == $$_encoding{'utf8'} or $_[0] == $$_encoding{'cp936'} or $_[0] == $$_encoding{'shiftjis'}
2 1 6 $_[0] == $$_encoding{'utf8'} or $_[0] == $$_encoding{'cp936'} or $_[0] == $$_encoding{'shiftjis'} or $_[0] == $$_encoding{'euc-jp'}
2 0 6 $_[0] == $$_encoding{'utf8'} or $_[0] == $$_encoding{'cp936'} or $_[0] == $$_encoding{'shiftjis'} or $_[0] == $$_encoding{'euc-jp'} or $_[0] == $$_encoding{'utf16'}
8335 12 0 13 -128 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2 || 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126
8402 4 0 32 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126 || -95 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2
8527 21 0 56 -127 <= $$bytes[$i] && $$bytes[$i] <= -97 || -32 <= $$bytes[$i] && $$bytes[$i] <= -17
9 0 23 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126 || -128 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -4