Branch Coverage

File:blib/lib/Text/Names/Abbreviate.pm
Coverage:98.1%

line%coveragebranch
279100TFif ($raw =~ /,/)
284100TFif not length $last and length $rest
286100TFif (length $last and length $rest) { }
100TFelsif (length $rest) { }
100TFelsif (length $last) { }
317100TFunless @parts
321100TFif ($had_leading_comma) { }
328100TFif ($particles and @parts)
339100TFif ($style eq $STY_LAST and $format ne $FMT_DEFAULT and $format ne $FMT_SHORTLAST and length $last_name)
361100TFunless defined $params->{'name'}
36850TF$raw_particles ? :
100TFref $raw_particles eq 'ARRAY' ? :
100TF!defined($raw_particles) ? :
375100TFunless length $name
379100TFif ($format eq $FMT_COMPACT)
380100TFlength $last_name ? :
384100TFif ($format eq $FMT_INITIALS)
386100TFif length $last_name
390100TFif ($format eq $FMT_SHORTLAST)
391100TF@{$initials;} ? :
392100TFif ($style eq $STY_LAST and length $last_name)
393100TFlength $joined ? :
395100TFlength $last_name ? :
100TFlength $joined ? :
401100TFunless @{$initials;}
403100TFlength $last_name ? :
100TF$style eq $STY_LAST && length $last_name ? :