Branch Coverage

blib/lib/Lingua/ZH/MMSEG.pm
Criterion Covered Total %
branch 30 42 71.4


line true false branch
132 0 0 $_[0] ? :
137 1 0 $_[0] ? :
139 0 1 unless is_utf8 $string
142 0 1 if ($str =~ /^[ -~]/)
156 0 1 $_[0] ? :
158 0 1 unless is_utf8 $string
161 0 1 if ($str =~ /^[ -~]/)
168 7 41 if (defined $dict{$match} or $_ == 1)
184 0 7 if $#chunk == 0
189 4 3 if $#max_len_chunk == 0
194 2 1 if $#max_avglen_chunk == 0
200 0 2 unless $word[$#word]
208 0 1 if $#min_varience_chunk == 0
212 1 1 if length $$_{'w1'} == 1 and defined $dict{$$_{'w1'}}
213 1 1 if length $$_{'w2'} == 1 and defined $dict{$$_{'w2'}}
214 0 2 if length $$_{'w3'} == 1 and defined $dict{$$_{'w3'}}
233 13 41 if defined $dict{$substr} or $_ == 1
240 1 12 if (length($str) - $index == 0)
253 19 59 if defined $dict{$substr} or $_ == 1
260 2 17 if (length($str) - $index == 0)
273 28 73 if (defined $dict{$substr} or $_ == 1)