Condition Coverage

blib/lib/Biblio/Citation/Compare.pm
Criterion Covered Total %
condition 75 119 63.0


and 3 conditions

line !l l&&!r l&&r condition
77 53 7 6 $#$list1 != $#$list2 and $opts{'strict'}
114 53 0 0 defined $e->{'doi'} and length $e->{'doi'}
53 0 0 defined $e->{'doi'} and length $e->{'doi'} and defined $c->{'doi'}
0 0 0 defined $e->{'doi'} and length $e->{'doi'} and defined $c->{'doi'} and length $c->{'doi'}
137 17 7 29 defined $e->{'date'} && defined $c->{'date'} && $e->{'date'} eq $c->{'date'}
147 46 2 5 $tsame and $asame
48 0 5 $tsame and $asame and $dsame
164 0 0 0 $e->{'source'} and $e->{'source'} ne $c->{'source'}
0 0 0 $e->{'volume'} and $e->{'volume'} ne $c->{'volume'}
168 16 0 8 $e->{'date'} and $e->{'date'} =~ /^\d\d\d\d$/
16 1 7 $e->{'date'} and $e->{'date'} =~ /^\d\d\d\d$/ and $c->{'date'}
1 0 7 $e->{'date'} and $e->{'date'} =~ /^\d\d\d\d$/ and $c->{'date'} and $c->{'date'} =~ /^\d\d\d\d$/
207 31 13 2 abs length($e->{'title'}) - length($c->{'title'}) > 20 and not $e->{'title'} =~ /$TITLE_SPLIT/ || $c->{'title'} =~ /$TITLE_SPLIT/
44 2 0 abs length($e->{'title'}) - length($c->{'title'}) > 20 and not $e->{'title'} =~ /$TITLE_SPLIT/ || $c->{'title'} =~ /$TITLE_SPLIT/ and not $e->{'title'} =~ /$PARENS/ || $c->{'title'} =~ /$PARENS/
1 46 0 not $tsame and (abs length($e->{'title'}) - length($c->{'title'}) > 20 and not $e->{'title'} =~ /$TITLE_SPLIT/ || $c->{'title'} =~ /$TITLE_SPLIT/ and not $e->{'title'} =~ /$PARENS/ || $c->{'title'} =~ /$PARENS/)
235 38 1 8 $ed1 and $ed2
39 5 3 $ed1 and $ed2 and $ed1 == $ed2
6 1 2 $ed1 and $ed2 and $ed1 == $ed2 and not $dsame
6 0 2 $ed1 and $ed2 and $ed1 == $ed2 and not $dsame and $asame_loose
237 38 8 1 $ed1 and not $ed2
37 8 1 $ed2 and not $ed1
37 3 5 $ed1 and $ed1 != $ed2
246 30 0 10 $parens1 and $parens2
30 8 2 $parens1 and $parens2 and numdiff($parens1, $parens2)

or 2 conditions

line l !l condition
103 0 53 $opts{'debug'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
135 46 6 1 $asame || sameAuthors($e->{'authors'}, $c->{'authors'}, 'strict', 0)
136 52 0 1 $asame_loose || sameAuthorBits($e->{'authors'}, $c->{'authors'})
158 0 0 24 $dsame || $e->{'date'} && $e->{'date'} =~ /$date_wildcards/ || $c->{'date'} && $c->{'date'} =~ /$date_wildcards/
159 23 0 24 $dsame || $compat_dates
162 0 0 24 $e->{'title'} =~ /^Introduction.?$/ or $e->{'title'} =~ /^Preface.?$/
164 0 0 0 $e->{'source'} and $e->{'source'} ne $c->{'source'} or $e->{'volume'} and $e->{'volume'} ne $c->{'volume'}
174 0 3 4 $date_diff > 3 or $date_diff < -3
194 23 0 0 $asame_loose or $asame_bits
207 12 1 2 $e->{'title'} =~ /$TITLE_SPLIT/ || $c->{'title'} =~ /$TITLE_SPLIT/
2 0 0 $e->{'title'} =~ /$PARENS/ || $c->{'title'} =~ /$PARENS/
237 1 1 45 $ed1 and not $ed2 or $ed2 and not $ed1
1 12 33 $ed1 and not $ed2 or $ed2 and not $ed1 or $ed1 and $ed1 != $ed2
299 0 0 0 $asame || sameAuthors($a, $b, 'strict', 0)
300 0 0 0 $asame_loose || sameAuthorBits($a, $b)
431 0 0 0 $num < 127 || $num > 159