Condition Coverage

blib/lib/Encode/Detect/CJK.pm
Criterion Covered Total %
condition 103 168 61.3


and 3 conditions

line !l l&&!r l&&r condition
7912 8 0 2 defined $_[1] && $len > $_[1]
7913 10 0 0 defined $_[2] && !$_[2]
8044 0 0 0 defined $_[1] && $len > $_[1]
8253 99 0 164 $$bytes[$j] >= 0 and $$bytes[$j] < 128
8257 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
8267 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
8289 3 0 0 $i > 95 and $l > 30
8299 0 6 0 (scalar @$bytes <= 1 || -2 != $$bytes[0] || -1 != $$bytes[1]) && (-1 != $$bytes[0] || -2 != $$bytes[1])
8319 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
8329 15 0 11 15 <= $i1 and $i1 < 55
8349 12 0 13 64 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= 126
8386 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
8397 32 0 4 64 <= $$bytes[$i + 1] and $$bytes[$i + 1] <= 126
8404 1 10 23 3 <= $i1 and $i1 <= 37
8436 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
8445 0 0 8 15 <= $i1 and $i1 < 55
8468 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
8484 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
8511 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
8545 0 0 32 $i1 < 94 and $j1 < 94
0 30 2 $i1 < 94 and $j1 < 94 and $$JPFreq[$i1][$j1] != 0
8579 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
8588 15 0 13 15 <= $i1 and $i1 < 55

or 3 conditions

line l !l&&r !l&&!r condition
8020 0 0 3 $charset eq '' or $charset eq 'iso-8859-1'
8153 0 0 0 $charset eq '' or $charset eq 'iso-8859-1'
8174 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'}
8319 12 0 13 -128 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2 || 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126
8386 4 0 32 64 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= 126 || -95 <= $$bytes[$i + 1] && $$bytes[$i + 1] <= -2
8511 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