Condition Coverage

blib/lib/SeeAlso/Source/BeaconAggregator/Maintenance.pm
Criterion Covered Total %
condition 121 256 47.2


and 2 conditions

line l !l condition
446 0 0 "ERROR: no such file $file\n" && (return undef)
448 0 0 "ERROR: no read permissions for $file\n" && (return undef)

and 3 conditions

line !l l&&!r l&&r condition
320 2 2 5 exists $options{'identifierClass'} and my $wanttype = ref $options{'identifierClass'}
2 0 2 exists $options{'identifierClass'} and not $options{'identifierClass'}
321 2 2 1 exists $self->{'identifierClass'} and ref $self->{'identifierClass'} ne $wanttype
346 0 0 0 $admref->{$rikey} and not exists $options{'prepareRedirs'}
0 0 0 $admref->{$rikey} && ($options{'prepareRedirs'} || !exists $options{'prepareRedirs'})
347 0 0 0 $options{'prepareRedirs'} and $options{'verbose'}
459 5 4 0 $options{'verbose'} and ref $package
551 8 22 18 @rest and $rest[$#rest] =~ m[^\S+://\S+$]
556 8 31 9 @rest and $rest[0] =~ /^\d*$/
559 6 2 1 not $altid || $link and $format =~ /\baltTARGET\b/
568 0 0 1 not $altid || $link and $format =~ /\baltTARGET\b/
630 24 0 24 $replacehandle and $did = $replacehandle->execute($hits, $info, $link, $hash, $altid)
825 5 0 4 $rowcnt and $rowcnt == 1
832 1 8 0 $fieldref->{'FORMAT'} and $self->{'accept'}{'FORMAT'}
847 1 8 0 $fieldref->{'FORMAT'} and $fieldref->{'FORMAT'} =~ /v(?:ersion)?\s*(\d+(?:\.\d*)?)/i
861 0 0 7 $parsed and $parsed =~ /(^|[^%])(%.)*%\d\$s/
881 0 0 0 $parsed and $parsed =~ /(^|[^%])(%.)*%\d\$s/
897 0 1 8 $parsed and $parsed =~ /(^|[^%])(%.)*%1\$s/
1 0 8 $parsed and $parsed =~ /(^|[^%])(%.)*%1\$s/ and not $parsed =~ /(^|[^%])(%.)*%[2-9]\$s/
1127 4 1 4 $fetchtime and $modtime
5 3 1 $fetchtime and $modtime and not $options{'force'}
1134 0 0 0 $options{'verbose'} and not $lwpcarp817++
1146 0 8 0 $charset and $options{'verbose'}
1149 0 0 0 $options{'verbose'} and not $lwpcarp827++
1153 0 8 0 $lm and $options{'verbose'}
1157 0 8 0 $vt and $options{'verbose'}
1211 8 0 0 not $collno and $osq
1298 0 3 0 $seqno_or_alias and $seqno_or_alias =~ /^\d+$/
1383 0 2 0 $seqno_or_alias and $seqno_or_alias =~ /^\d+$/
1471 6 0 3 defined $value and $value ne ''
1601 40 4 17 $seqno_or_alias and $seqno_or_alias =~ /^\d+$/
1660 2 0 0 $options{'verbose'} and ref $package

or 2 conditions

line l !l condition
295 8 1 $admref->{$verkey} || 0
441 4 5 $options{'verbose'} ||= 0
467 9 0 $fields->{'_alias'} || ''
471 4 0 $fields->{'_alias'} || ''
4 0 $fields->{'_uri'} || ''
548 18 30 $altid ||= ''
560 1 0 shift @rest || ''
563 6 2 shift @rest || ''
616 20 28 $altid ||= ''
714 9 0 $autopurge || '???'
745 9 0 $self->idStat($collno, 'distinct', 0) || 0
748 1 0 $fields->{'_counti'} ||= 0
752 0 9 $fields->{'_sort'} || ''
754 8 0 $self->idStat($collno, 'distinct', 1) || 0
1 0 $fields->{'_countu'} || $self->idStat($collno, 'distinct', 1) || 0
772 9 0 $self->idStat(undef, 'distinct', 0) || 0
773 9 0 $self->idStat(undef, 'distinct', 1) || 0
820 0 0 $row->[3] || '???'
1123 1 0 $oalias || ''
1150 8 0 $charset ||= 'UTF-8'
1158 8 0 $vt ||= 0
1347 3 0 $self->idStat(undef, 'distinct', 0) || 0
1348 3 0 $self->idStat(undef, 'distinct', 1) || 0
1430 2 0 $self->idStat(undef, 'distinct', 0) || 0
1431 2 0 $self->idStat(undef, 'distinct', 1) || 0
1475 2 1 hDecode($value, $key) || ''
1624 61 0 $hits->[0] || 0

or 3 conditions

line l !l&&r !l&&!r condition
344 0 0 8 exists $options{'prepareRedirs'} or exists $admref->{$rikey}
346 0 0 0 $options{'prepareRedirs'} or $admref->{$rikey} and not exists $options{'prepareRedirs'}
463 0 9 0 $fields->{'_ftime'} ||= time
464 8 1 0 $fields->{'_mtime'} ||= $mtime
468 0 0 0 $fields->{'_alias'} || $fields->{'_uri'} || $file
559 0 6 3 $altid || $link
568 0 0 1 $altid || $link
611 0 0 4 $info || $link
0 0 4 $altid ||= $info || $link
721 8 0 1 $recnew || $recdel
760 8 0 1 $numchg or $options{'force'}
820 0 0 0 $row->[1] || $row->[2]
826 0 2 0 $fieldref->{'_counti'} ||= $ocounti
827 0 2 0 $fieldref->{'_countu'} ||= $ocountu
832 0 0 1 $fieldref->{'VERSION'} or $fieldref->{'TARGET'}
1 0 0 $fieldref->{'VERSION'} or $fieldref->{'TARGET'} or $fieldref->{'PREFIX'}
0 0 0 $fieldref->{'VERSION'} or $fieldref->{'TARGET'} or $fieldref->{'PREFIX'} or $fieldref->{'MESSAGE'}
848 0 0 0 $fieldref->{'VERSION'} ||= $1
970 9 0 0 $cancontinue or $options{'ignore-header-errors'}
975 8 0 1 $fieldref->{'_uri'} ||= $fieldref->{'FEED'}
978 0 0 0 $fieldref->{'FEED'} || $fieldref->{'TARGET'}
9 0 0 $fieldref->{'_alias'} ||= $fieldref->{'FEED'} || $fieldref->{'TARGET'}
1120 9 0 0 $params->{'_uri'} || $ouri || $feed
1123 8 1 0 $alias ||= $oalias || ''
1154 8 0 0 $lm ||= $^T
1298 3 0 0 $seqno_or_alias or $options{'force'}
1306 0 3 0 $options{'force'} or @seqnos == 1
1335 3 0 0 $rows or $options{'force'}
1383 2 0 0 $seqno_or_alias or $options{'force'}
1391 0 2 0 $options{'force'} or @seqnos == 1
1418 2 0 0 $trows or $options{'force'}
1530 4 0 0 $info->{'seqno'} || $seqno_or_alias
1673 12 28 2 $c->hash($onerow->[0]) || $c->value($onerow->[0])
1727 11 24 1 $c->hash($onerow->[0]) || $c->value($onerow->[0])