Branch Coverage

blib/lib/Lingua/ZH/WordSegment.pm
Criterion Covered Total %
branch 8 36 22.2


line true false branch
27 0 1 if (defined $dictFileName) { }
29 0 0 unless open dictFile, $dictFileName
48 55 22692 if ($thisChnWord =~ /[\x00-\x7F]/) { }
50 22692 0 if $thisChnWord =~ /^([\x80-\xFF].)/
52 3114 19578 unless defined $longestWordListStart{$headChar}
53 4916 17776 if $longestWordListStart{$headChar} < $thisLen
75 0 0 if ($thisChar ge "\200") { }
82 0 0 if ($partialChnString ne '')
95 0 0 if ($partialChnString ne '')
124 0 0 if ($i == $j) { }
142 0 0 unless defined $possibleLen
146 0 0 if ($possibleLen + $currentPos > $lenOfString - 1)
156 0 0 if ($wordFreqList{$subString})
204 0 0 if ($arcTable[$thisCharIndex][$endCharIndex] != -1) { }
229 0 0 if ($arcTable[$startCharIndex][$thisCharIndex] != -1) { }
248 0 0 if ($leftToRightFreq > $rightToLeftFreq) { }
252 0 0 if ($leftRightSegLabel[$p] == 1)
259 0 0 if ($rightLeftSegLabel[$p] == 1)