Condition Coverage

blib/lib/Text/Names.pm
Criterion Covered Total %
condition 57 97 58.7


and 3 conditions

line !l l&&!r l&&r condition
746 0 3 1 $#first_surname > -1 and $#surname_first > -1
769 0 7 3 $fscore and not $mscore
770 0 7 0 $mscore and not $fscore
866 60 49 7 not $in =~ /,/ and $in =~ /^(.*?\s)((?:[A-Z][\-\.\s]{0,2}){1,3})$/
894 49 0 0 $lastname =~ /^Jr\.?$/i and $#bits > -1
901 2 47 5 defined $bits[-1] and $bits[-1] =~ /^$PREFIXES$/i
999 0 0 3 $silly >= 2 and $#tokens % 2 == 1
1039 38 0 0 defined $_[-1] and $_[-1] eq 'reverse'
1050 55 0 2 /^([A-Z](\.|\s|$)\s?)+$/ and $#new > -1
1107 0 14 0 defined $a and defined $b
1112 0 14 0 defined $firsta and not defined $firstb
1113 0 14 0 defined $firstb and not defined $firsta
1114 0 14 0 defined $lasta and not defined $lastb
1115 0 14 0 defined $lastb and not defined $lasta
1216 21 1 21 length $a > 1 && length $b > 1
1288 0 1 57 $n =~ /[a-z]/ and not $n =~ /[A-Z]{2,} [A-Z]{2,}/
1361 0 0 0 $variation =~ /-/ and $alias =~ / /
1362 0 0 0 $variation =~ / / and $alias =~ /-/

or 2 conditions

line l !l condition
679 628 1668 $ABBREVIATIONS{$a} ||= {}
681 628 1668 $ABBREVIATIONS_LC{lc $a} ||= {}
702 6 6 $commonMaleFirstnames{$name} || 0
8 4 $commonFemaleFirstnames{$name} || 0
707 9 3 $commonSurnames{$name} || 0
712 3 7 $percentLimit ||= 0
717 2 8 $percentLimit ||= 0
1073 5 1 $f ||= ''
1074 6 0 $l ||= ''
1135 12 0 $firsta || ''
1136 12 0 $firstb || ''

or 3 conditions

line l !l&&r !l&&!r condition
768 10 0 1 $fscore or $mscore
1125 1 0 0 samePerson("$firsta, $lasta", "$lastb, $firstb", 'loose', 0) || samePerson("$firsta $lasta", "$firstb $lastb", 'loose', 0)
1146 17 2 6 $i <= $#at or $i <= $#bt
1282 30 23 5 $n =~ /,/ or $n =~ /\w \w/
1363 0 0 0 $variation =~ /-/ or $alias =~ /-/
1364 0 0 0 $variation =~ / / or $alias =~ / /
1476 1 3 56 $txt =~ /\b[A-Z]{2,}\b/ or $txt =~ /\b[a-z]{4,}\b/