Branch Coverage

blib/lib/Text/GenderFromName.pm
Criterion Covered Total %
branch 93 164 56.7


line true false branch
452 1 0 if (not $females_ref && $males_ref) { }
0 0 elsif ($males_ref and not $females_ref) { }
0 0 elsif ($females_ref and not $males_ref) { }
473 0 14 unless ($name)
478 0 14 if $DEBUG
483 0 14 unless $MATCH_LIST[$i]
485 0 14 if $DEBUG
489 0 14 if $DEBUG and $gender
491 7 7 if $gender
494 0 14 if $DEBUG
508 1 1 if ($female_hit and not $male_hit) { }
0 1 elsif ($male_hit and not $female_hit) { }
527 1 1 if ($female_hit or $male_hit)
528 0 1 $female_hit > $male_hit ? :
531 0 2 if $DEBUG and $gender
556 1 1094 if $female_hit
560 1 1093 if ($meta_name eq $meta_list_name)
563 0 1 if $DEBUG
572 2 446 if $male_hit
576 2 444 if ($meta_name eq $meta_list_name)
579 0 2 if $DEBUG
585 0 2 if ($female_hit and not $male_hit) { }
1 1 elsif ($male_hit and not $female_hit) { }
616 23 2003 if ($meta_name eq $meta_list_name)
619 0 23 if $DEBUG
630 9 1993 if ($meta_name eq $meta_list_name)
633 0 9 if $DEBUG
639 1 1 if ($female_hit or $male_hit)
640 0 1 $female_hit > $male_hit ? :
657 0 2 if ($name =~ /^joh?n/) { }
0 2 elsif ($name =~ /^th?o(m|b)/) { }
0 2 elsif ($name =~ /^frank/) { }
0 2 elsif ($name =~ /^bil/) { }
0 2 elsif ($name =~ /^hans/) { }
0 2 elsif ($name =~ /^ron/) { }
0 2 elsif ($name =~ /^ro(z|s)/) { }
0 2 elsif ($name =~ /^walt/) { }
0 2 elsif ($name =~ /^krishna/) { }
0 2 elsif ($name =~ /^tri(c|sh)/) { }
1 1 elsif ($name =~ /^pas(c|qu)al$/) { }
0 1 elsif ($name =~ /^ellie/) { }
0 1 elsif ($name =~ /^anfernee/) { }
683 0 2 if $name =~ /^.*[aeiy]$/
685 0 2 if $name =~ /^all?[iy]((ss?)|z)on$/
687 0 2 if $name =~ /een$/
689 0 2 if $name =~ /^[^s].*r[rv]e?y?$/
691 0 2 if $name =~ /^[^g].*v[ei]$/
693 0 2 if $name =~ /^[^bd].*(b[iy]|y|via)nn?$/
695 0 2 if $name =~ /^[^ajklmnp][^o][^eit]*([glrsw]ey|lie)$/
697 1 1 if $name =~ /^[^gksw].*(th|lv)(e[rt])?$/
699 0 2 if $name =~ /^[cgjwz][^o][^dnt]*y$/
701 0 2 if $name =~ /^.*[rlr][abo]y$/
703 0 2 if $name =~ /^[aehjl].*il.*$/
705 0 2 if $name =~ /^.*[jj](o|o?[ae]a?n.*)$/
707 0 2 if $name =~ /^.*[grguw][ae]y?ne$/
709 0 2 if $name =~ /^[flm].*ur(.*[^eotuy])?$/
711 0 2 if $name =~ /^[clmqtv].*[^dl][in]c.*[ey]$/
713 0 2 if $name =~ /^m[aei]r[^tv].*([^cklnos]|([^o]n))$/
715 0 2 if $name =~ /^.*[ay][dl]e$/
717 0 2 if $name =~ /^[^o]*ke$/
719 0 2 if $name =~ /^[cks]h?(ar[^lst]|ry).+$/
721 0 2 if $name =~ /^[pr]e?a([^dfju]|qu)*[lm]$/
723 0 2 if $name =~ /^.*[aa]nn.*$/
725 0 2 if $name =~ /^.*[^cio]ag?h$/
727 0 2 if $name =~ /^[^ek].*[grsz]h?an(ces)?$/
729 0 2 if $name =~ /^[^p]*([hh]e|[ee][lt])[^s]*[ey].*[^t]$/
731 0 2 if $name =~ /^[^el].*o(rg?|sh?)?(e|ua)$/
733 0 2 if $name =~ /^[dp][eo]?[lr].*s$/
735 0 2 if $name =~ /^[^jpswz].*[denor]n.*y$/
737 0 2 if $name =~ /^k[^v]*i.*[mns]$/
739 0 2 if $name =~ /^br[aou][cd].*[ey]$/
741 0 2 if $name =~ /^[acgk].*[deinx][^aor]s$/
743 0 2 if $name =~ /^[ilw][aeg][^ir]*e$/
745 0 2 if $name =~ /^[^agw][iu][gl].*[drt]$/
747 0 2 if $name =~ /^[abeiuy][euz]?[blr][aeiy]$/
749 0 2 if $name =~ /^[egilp][^eu]*i[ds]$/
751 0 2 if $name =~ /^[art][^r]*[dhn]e?y$/
753 0 2 if $name =~ /^[bhl].*i.*[rtxz]$/
755 0 2 if $name =~ /^.*oi?[mn]e$/
757 0 2 if $name =~ /^d.*[mnw].*[iy]$/
759 0 2 if $name =~ /^[^bg](e[rst]|ha)[^il]*e$/
761 0 2 if $name =~ /^[adfgim][^r]*([bg]e[lr]|il|wn)$/