Branch Coverage

blib/lib/Text/Names/Canonicalize.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
257 25 0 if (my $titles = $rules->{'strip_titles'})
259 25 0 if defined $name
275 25 0 defined $name ? :
317 25 0 if ($rules and $rules->{'suffixes'})
324 13 84 if ($t =~ /^[a-z]$/u) { }
6 78 elsif ($suffix{$t}) { }
347 4 25 unless $rules->{'particles'}
359 0 29 unless @tokens
366 25 4 if ($rules->{'surname_strategy'} and $rules->{'surname_strategy'} eq 'last_token_with_particles') { }
387 29 0 if (@tokens)
406 1 43 unless defined $name
423 30 14 if ($opts{'strip_diacritics'})
440 1 105 if (@t and ("$w $t[0]") =~ /^(von der|von dem)$/u)