Branch Coverage

blib/lib/Lingua/ZH/WordSegmenter.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
26 0 0 if (@_ != 0)
27 0 0 if (ref $_[0] eq 'HASH') { }
40 0 0 if ($$self{'dic'}) { }
42 0 0 unless open $FH, $$self{'dic'}
66 0 0 if ($$self{'verbose'})
78 0 0 if ($word =~ /^(\p{Han})/)
80 0 0 if (not exists $$self{'headchar_maxlen'}{$headchar}) { }
84 0 0 if ($$self{'headchar_maxlen'}{$headchar} < $len)
105 0 0 if ($text =~ s/^(\p{Han}+)//) { }
123 0 0 if ($$self{'verbose'})
131 0 0 if ($$self{'verbose'})
137 0 0 if ($i == $j) { }
146 0 0 if ($$self{'verbose'})
156 0 0 unless defined $possiblelen
158 0 0 if ($$self{'verbose'})
162 0 0 if ($possiblelen + $i > $len - 1)
170 0 0 if ($$self{'verbose'})
174 0 0 if ($$self{'word_freq'}{$substr})
175 0 0 if ($$self{'verbose'})
185 0 0 if ($$self{'verbose'})
194 0 0 if ($$self{'verbose'})
215 0 0 if ($arctable[$index][$endindex] != -1) { }
235 0 0 if ($arctable[$startindex][$index] != -1) { }
248 0 0 if ($$self{'verbose'})
252 0 0 if ($lrfreq > $rlfreq) { }
256 0 0 if ($lrlabel[$p] == 1)
262 0 0 if ($rllabel[$p] == 1)
269 0 0 if ($$self{'verbose'})