Branch Coverage

blib/lib/Biblio/Util.pm
Criterion Covered Total %
branch 34 86 39.5


line true false branch
31 0 2 $minor < 10 ? :
80 0 2 if ($text =~ /^(\d+)(?:\.|st|nd|th)?$/)
97 0 0 if ($project) { }
105 0 0 if @authors
111 0 0 if defined $year
127 0 0 unless defined $title_words
129 0 0 if @words
143 0 0 if defined $$rec{'Authors'}
145 0 0 if defined $$rec{'CorpAuthor'}
147 0 0 if defined $$rec{'Editors'}
149 0 0 if defined $$rec{'Publisher'}
151 0 0 if defined $$rec{'Organization'}
166 2 346 unless defined $names
167 0 346 if defined $type and not $type =~ /name/i
168 110 236 if defined $type and $type eq 'xname'
171 0 346 if ($names =~ s/\s+et.?\s+al.*\s*$//i)
175 0 346 if ($names =~ s/\s+and\s+others\s*$//i)
192 0 346 if $etal
229 0 892 if $name eq 'others'
230 0 892 if $name =~ /"^et\s+al\.?$"/
234 886 6 unless $name =~ m[^/.+/$]
240 0 6 unless @parts
242 0 6 unless @parts
243 6 0 if scalar @parts > 1
244 6 0 if scalar @parts > 1
255 2 4 if ($xname_flag)
260 0 4 if $von
261 4 0 if $jr
285 0 0 unless $name =~ m[^/.+/$]
291 0 0 unless @parts
293 0 0 unless @parts
294 0 0 if scalar @parts > 1
295 0 0 if scalar @parts > 1
304 0 0 if $von
305 0 0 if $jr
315 0 304 if $name_array eq 'et al.'
324 2 302 unless @first
327 0 302 if wantarray
328 302 0 $initials_space ? :
334 0 726 if $name_array eq 'et al.'
336 724 2 unless ref $last eq 'ARRAY'
342 66 112 if $n < 2
343 56 56 if $n == 2