Branch Coverage

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


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