Branch Coverage

blib/lib/Finance/CompanyNames.pm
Criterion Covered Total %
branch 28 54 51.8


line true false branch
166 0 6 if (length $lexem >= 3 and exists $Finance::CompanyNames::abbrevs{$lexem})
173 1 5 if (exists $Finance::CompanyNames::leaders{$lexem})
195 1 0 if ($kk == 1 and $Finance::CompanyNames::quants{$lexem} == 1 and not exists $$Finance::CompanyNames::stems{$lower} and not exists $$Finance::CompanyNames::dict{$lower} and not $allUpper)
204 1 0 if ($ms < $ss)
215 1 5 if ($ms >= $Finance::CompanyNames::threshold)
219 0 1 if (/may/i)
222 1 0 if ($chainBegin == -1)
229 1 0 if (not exists $$links{$mtic}) { }
237 4 2 if (!$isMatch || $i >= $nLex - 1 and $chainBegin != -1)
239 0 4 if (exists $Finance::CompanyNames::quants{$lexem} and $Finance::CompanyNames::quants{$lexem} < 0.25)
245 1 3 if ($i > $lastMatch + $wordBuff or $i >= $nLex - 1)
254 1 0 unless (exists $utica{$mtic})
260 1 0 if ($utica{$mtic}{'freq'} <= 5)
292 0 0 if ($part eq $lexem) { }
294 0 0 if (validWord($lexem)) { }
295 0 0 if $go
298 0 0 if $go
304 0 0 if (exists $Finance::CompanyNames::quants{$lexem})
333 1 0 if ($min < 0)
336 1 0 if ($max > scalar @$lexems)
341 6 1 if (defined $$lexems[$i])
359 0 1 unless $ticker =~ /[\w]+/ and $name =~ /[\w]+/
363 0 1 unless scalar @particles
364 0 1 if $particles[0] eq ''
365 0 1 unless scalar @particles
409 1 6 if (length $word == 1)
412 0 1 if (length $word == 1) { }