Branch Coverage

blib/lib/BibTeX/Parser/Entry.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
15 93 47 defined $fieldsref ? :
18 93 0 unless ($field =~ /^_/)
23 93 47 if (defined $type)
36 45 29 if (@_)
45 4 0 if (@_)
49 0 4 $self->parse_ok ? :
54 29 46 if (scalar @_ == 1) { }
67 68 40 if (scalar @_ == 1) { }
81 199 173 if (scalar @_ == 2) { }
89 172 1 if (not exists $self->{'_fieldnums'}{$field})
102 0 91 if ($field =~ /author|editor/i) { }
138 0 34 if (@_) { }
139 0 0 if (@_ == 1) { }
145 0 0 unless (scalar @names)
154 0 0 if (ref $param eq 'BibTeX::Author') { }
164 18 16 unless (defined $$self{"_$type"})
211 45 0 if (@_)
219 45 3 if (@_)
229 15 1 unless (exists $options{'canonize_names'})
237 3 13 if ($options{'print_pre'})
241 3 13 if (exists $options{'type_capitalization'})
242 1 2 if ($options{'type_capitalization'} eq "Lowercase")
245 1 2 if ($options{'type_capitalization'} eq "Titlecase")
253 15 1 if ($field eq "author" and $options{'canonize_names'})
257 8 1 if ($field eq "editor" and $options{'canonize_names'})
261 15 62 if (exists $options{'field_capitalization'})
262 5 10 if ($options{'field_capitalization'} eq "Uppercase")
265 5 10 if ($options{'field_capitalization'} eq "Titlecase")