Branch Coverage

blib/lib/Lingua/EN/NameCase.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
159 1 5 if ref $_[0] and (ref $_[0] ne 'ARRAY' and ref $_[0] ne 'SCALAR')
164 3 8 if (wantarray and scalar @_ > 1 || ref $_[0] eq 'ARRAY') { }
1 7 elsif (ref $_[0] eq 'ARRAY') { }
3 4 elsif (ref $_[0] eq 'SCALAR') { }
3 1 elsif (scalar @_ == 1) { }
167 1 2 ref $_[0] ? :
198 3 174 if scalar @_ > 1 or ref $_[0] and ref $_[0] ne 'SCALAR'
201 173 1 if @_
202 2 172 if ref $_
204 1 173 unless $_
214 48 125 if (/\bMac[A-Za-z]{2,}[^aciozj]\b/l or /\bMc/l)
253 172 1 if $Lingua::EN::NameCase::HEBREW
254 172 1 if $Lingua::EN::NameCase::HEBREW
258 171 2 unless $Lingua::EN::NameCase::SPANISH
259 171 2 unless $Lingua::EN::NameCase::SPANISH
264 168 5 if ($Lingua::EN::NameCase::ROMAN)
270 170 3 if ($Lingua::EN::NameCase::POSTNOMINAL)