Branch Coverage

blib/lib/Lingua/Anagrams.pm
Criterion Covered Total %
branch 112 132 84.8


line true false branch
22 0 12 unless ref $wl eq 'ARRAY'
28 5 7 if (ref $wl->[0] eq 'ARRAY') { }
41 37 7 if (defined $offset) { }
42 1 36 if $o < $offset
75 2 14 unless @list
80 2 2 if @$prior >= @$list
83 1 1 unless $set{$word}
110 47 32 if ($i) { }
126 160 538 if ($c == -1 or $c >= @$level) { }
127 71 89 if @stack == 1
136 388 150 if ($l) { }
137 245 143 if ($c) { }
138 149 96 if ($counts->[$c]) { }
149 83 60 if ($total) { }
176 0 8 unless length $phrase
181 1 7 if ($i)
182 0 1 unless defined $pairs[$i]
183 1 0 if $i < 0
194 0 8 unless _all_known($counts)
197 0 8 unless @anagrams
198 0 8 if $min and @anagrams < $min
202 4 4 if ($sort)
204 9 15 @$a <= @$b ? :
205 9 15 $ordered == 1 ? :
208 24 3 if $c
217 1 26 if (@_ == 1) { }
219 0 1 unless 'HASH' eq ref $r
239 1 6 if ($i)
240 0 1 unless defined $pairs[$i]
241 1 0 if $i < 0
244 0 7 unless length $phrase
263 7 47 unless $rv
265 26 21 if $c{$key}++
268 5 16 if $opts->{'sorted'}
283 96 103 unless ($i)
284 49 47 if (@t) { }
287 0 49 unless _all_known($counts)
289 0 49 unless _worth_pursuing($counts, $words)
297 45 107 unless ($rv)
312 45 192 unless @pairs
313 112 80 if ($opts->{'random'})
315 44 68 if ($i)
322 89 103 unless (ref $s eq 'CODE')
323 42 47 if (_any($s)) { }
337 85 107 unless ($remainder)
354 69 68 unless $c = $counts->[$i]
356 68 21 if $_->[1][$i] < $c
367 36 49 if $counts->[$i]
387 36 34 if $counts->[$i]
399 0 57 if @$counts > @$known
401 0 265 if $counts->[$i] and not $Lingua::Anagrams::known->[$i]
413 12 6 if (defined $lowest) { }
414 6 6 if $c < $lowest
446 59 444 if $_
456 25 0 if ($total <= $limit)
459 3 22 if $cached
463 22 0 if (_all_touched($counts, $words))
466 17 19 if (_any($c)) { }
478 22 0 if $key
491 26 114 unless $c = $counts->[$_]
493 75 39 if $wc->[$_] < $c
498 0 22 unless @good_indices
500 73 36 unless $_
501 0 36 unless $tallies[$_]
507 73 36 unless $_
509 22 14 if (not $best or $n < $min)