Branch Coverage

blib/lib/Biblio/BP.pm
Criterion Covered Total %
branch 24 78 30.7


line true false branch
31 0 2 $minor < 10 ? :
57 0 2 if (defined $ENV{'BPHOME'}) { }
61 0 2 unless $dir
63 0 2 unless -d $dir
97 0 0 unless (open('>' . $outfile))
150 0 3 if $default_category
158 0 0 unless defined $fmt
163 0 0 if ($create_citekey or $$ref{'CiteKey'} =~ /^\d+$/)
261 134 0 unless defined $file
263 2 132 unless (defined $record)
275 8 124 unless (defined $rec{'BibDate'})
282 0 132 if (not defined $rec{'Category'} and defined $default_category)
287 0 132 if (defined $ref{'PBibNote'})
292 0 132 if (defined $rec{'Abstract'})
330 0 0 if ($rec{'Institution'} and not $rec{'Organization'})
337 0 0 unless $rec{$f}
344 0 0 if (defined $CiteType) { }
345 0 0 if (defined $pbib_to_canon_types{$CiteType})
352 0 0 if ($CiteType =~ /report$/ and not defined $rec{'ReportNumber'})
358 0 0 if ($CiteType eq 'phdthesis' and not defined $rec{'ReportType'})
361 0 0 if ($CiteType eq 'masterthesis' and not defined $rec{'ReportType'})
382 588 3108 if (defined $rec{$f} and not defined $rec{$pbibFields{$f}})
392 276 120 unless $rec{$f}
405 0 132 if (not defined $rec{'PBibCiteType'} and defined $rec{'OrigCiteType'})
410 20 112 if (defined $rec{'PBibCiteType'})
417 40 92 if (defined $rec{'PBibNote'})
423 0 40 if ($f =~ /^([a-z]+)=\s*(.*)\s*$/i) { }
429 40 0 if (@notes) { }
471 0 0 if (@_)
474 0 0 if defined $_[1]
480 0 0 unless defined $logfilename
482 0 0 unless (defined $logfilehandle)
483 0 0 unless $logfilehandle = 'FileHandle'->new(">$logfilename")
491 0 0 if (defined $level and $loglevel)
492 0 0 if ($loglevel == 1 or $level > $loglevel)
513 0 0 $w == 1 ? :
0 0 if $w
514 0 0 $e == 1 ? :
0 0 if $e