Branch Coverage

blib/lib/Lingua/TokenParse.pm
Criterion Covered Total %
branch 62 120 51.6


line true false branch
49 0 2 if $$self{'verbose'}
50 1 1 if $$self{'word'}
58 1 1 if $$self{'lexicon_file'}
64 0 0 if @_
71 0 1 if $$self{'verbose'}
72 1 0 if (@_)
75 0 1 if $$self{'verbose'}
84 2 962 if (@_)
85 0 0 @_ % 2 == 0 ? :
2 0 @_ == 1 && ref $_[0] eq 'HASH' ? :
96 1 1 if @_
102 1 194 if @_
108 1 2 if @_
114 1 1 if @_
120 0 0 if @_
126 0 0 if @_
132 0 0 if @_
138 1 45 if @_
144 0 1 if $$self{'verbose'}
145 0 1 if @_
146 0 1 unless defined $$self{'word'}
147 0 1 unless keys %{$$self{'lexicon'};}
162 0 1 if $$self{'verbose'}
169 45 0 unless grep {$part =~ /$_/;} @{$self->constraints;}
173 0 1 if ($$self{'verbose'})
177 0 0 $last > length $part ? :
0 0 $last ? :
182 0 0 if @{$$self{'parts'};}
190 0 1 if $$self{'verbose'}
192 5 40 if $$self{'lexicon'}{$part}
195 0 1 if $$self{'verbose'}
202 0 1 if $$self{'verbose'}
212 0 1 if $$self{'verbose'}
236 192 64 unless (grep {$t =~ /$_/;} @{$$self{'constraints'};})
238 0 192 if $$self{'verbose'}
249 0 1 unless scalar keys %{$$self{'lexicon'};}
250 0 1 if $$self{'verbose'}
255 0 192 if exists $$self{'knowns'}{$combo}
266 108 852 if ($combo_seen)
278 0 192 if $$self{'verbose'}
279 85 107 if ($x or $y) { }
304 108 852 if (exists $$lexicon{$string}) { }
0 852 elsif (exists $$lexicon{"-$string"}) { }
0 852 elsif (exists $$lexicon{"$string-"}) { }
305 108 0 if defined $combo_seen
308 0 0 if defined $combo_seen
312 0 0 if defined $combo_seen
316 960 0 wantarray ? :
328 0 0 unless $$self{'knowns'}{$a}[0] <=> $$self{'knowns'}{$b}[0]
336 0 0 $$self{'definitions'}{$chunk} ? :
0 0 defined $$self{'definitions'}{$chunk} ? :
351 0 0 wantarray ? :
358 0 5 if $$self{'verbose'}
361 1 2 if ($file and $file eq 'lexicon_file' and $value)
369 0 5 if $$self{'verbose'} and not $file
372 3 2 if ($file)
374 2 1 if (keys %{$$self{'lexicon'};}) { }
375 0 2 if $$self{'verbose'}
380 0 1 if $$self{'verbose'} and -e $file
381 1 0 if -e $file