Branch Coverage

File:blib/lib/Genealogy/Occupation.pm
Coverage:100.0%

line%coveragebranch
337100TFunless defined $raw
339100TFref $raw eq 'ARRAY' ? :
370100TFif $FILTER{lc $occupation}
373100TFif ($occupation =~ /$pattern/u)
378100TFif $filtered
382100TFunless length $occupation
386100TFif lc $last_normalised eq lc $occupation
390100TFif ($language eq "en")
395100TFif ($language eq 'fr') { }
100TFelsif ($language eq 'de') { }
435100TFif (my $match = $DIRECT{lc $occupation})
440100TFif ($occupation =~ /$GENERAL_SERVANT_RE/u)
453100TFif ($occupation =~ /^(.+)\s(?:domestic|dom)$/iu)
458100TFif ($occupation =~ /works?\s+(?:on|for)\s+(.+)/iu)
463100TFif ($occupation =~ /^Cleaner\s+(.+)/iu)
468100TFif ($occupation =~ /^Clerk\s+(.+)/iu)
471100TFif ($occupation =~ /^Salesman\s+(.*)/iu)
474100TFif ($occupation =~ /^Foreman\s+(.*)/iu)
479100TFif ($occupation =~ /^Manager\s+(.*)/iu and not $occupation =~ /^Manager of /iu and not $occupation =~ /Manager & /iu)
486100TFif ($occupation =~ /^Shop Assistant\s+(.+)/iu)
491100TFif ($occupation =~ /^(.+)\s+Assistant$/iu)
493100TFif (lc $trade eq "bakers")
496100TFif (lc $trade eq "butchers")
499100TFunless ($trade =~ /'s$/u or lc $trade eq "shop")
505100TFif ($occupation =~ /police$/iu)
522100TFif (not $occupation =~ /gas works/iu and $occupation =~ /^(.+([a-z]))s\s+([a-z]+)$/iu)
525100TFunless (lc $base eq "bu" or lc $base eq "harnes")
531100TFif ($occupation =~ /^(.+)\s+on farm$/iu)
565100TFif (defined $ENV{'LANG'} and $ENV{'LANG'} =~ /^en_US/u)
572100TFif (defined $ENV{'LANG'} and $ENV{'LANG'} =~ /^en_CA/u)
608100TFif ($occupation =~ /teaching/iu)
616100TFif ($occupation =~ /^(.+)\sFarmer$/iu)
618100TF$sex eq 'F' ? :
624100TFif (my $translation = $FRENCH{lc $occupation})
625100TFif (ref $translation eq "HASH")
632100TFif ($warn_on_error)
666100TFif ($occupation =~ /teaching/iu)
667100TF$sex eq 'F' ? :
671100TFif ($occupation =~ /^(.+)\sFarmer$/iu)
672100TF$sex eq 'F' ? :
680100TFif (my $translation = $GERMAN{lc $occupation})
681100TFif (ref $translation eq "HASH")
688100TFif ($warn_on_error)
719100TFif ($tag =~ /^([a-z]{2})/iu)
725100TFif ($ENV{'LANGUAGE'} and $ENV{'LANGUAGE'} =~ /^([a-z]{2})/iu)
730100TFunless defined $val
731100TFif ($val =~ /^([a-z]{2})/iu)
737100TFif defined $ENV{'LANG'} and $ENV{'LANG'} =~ /^C(\.|$)/u