Branch Coverage

blib/lib/Biblio/Citation/Parser/Standard.pm
Criterion Covered Total %
branch 23 58 39.6


line true false branch
134 30 170 if ($template =~ /$_/)
223 0 1 if ($authstr =~ /;/) { }
0 1 elsif ($authstr =~ /^[[:upper:]\.]+[[:space:]]+[[:alnum:]]/) { }
1 0 elsif ($authstr =~ /^.+[[:space:]]+[[:upper:]\.]+/) { }
0 0 elsif ($authstr =~ /^.+,[[:space:]]*.+/ or $authstr =~ /.+\band\b.+/) { }
0 0 elsif ($authstr =~ /^[[:alpha:][:space:]]+$/) { }
0 0 elsif ($authstr =~ /[[:word:]]+[[:space:]]+[[:word:]]?[[:space:]]*[[:word:]]+/) { }
241 0 0 if $_ eq 'and' or $_ eq '&' or /^[[:space:]]*$/
243 0 0 if ($fam) { }
270 0 2 if /^[[:space:]]*$/
271 1 1 if ($fam == 1) { }
294 0 0 if /^[[:space:]]*$/
295 0 0 if ($fam) { }
313 0 0 if (defined $1 and defined $2)
318 0 0 if (not defined $2 or $2 eq '')
360 1 0 unless ($ref =~ /^[[:digit:]]-X\.]+$/)
369 0 1 if ($ref =~ s/doi:(.+)\b//)
373 0 1 if ($ref =~ s[((astro-ph|cond-mat|gr-qc|hep-ex|hep-lat|hep-ph|hep-th|math-th|nucl-ex|nucl-th|physics|quant-ph|math|nlin|cs)/\d+\b)][])
383 0 1 if (scalar @specific_pubs > 0)
456 8 377 if ($ref =~ /^$currtemplate$/)
460 3 5 if ($curr_rel > $max_rel) { }
0 9 elsif ($curr_rel == $max_rel and $curr_conc > $max_conc) { }
483 1 0 if (scalar @matchedvars > 0)
494 0 9 if (/^uc/)
498 0 0 if (not defined $metaout{$alt} or $metaout{$alt} eq '')
511 0 9 if not defined $metaout{$_} or $metaout{$_} eq '' or $_ eq 'any'
535 1 0 if (defined $metaout{'authors'})
541 0 1 if (defined $metaout{'publisher'} and not defined $metaout{'publication'})
547 0 1 if (defined $metaout{'cappublication'})