Condition Coverage

blib/lib/DiaColloDB/Relation/DDC.pm
Criterion Covered Total %
condition 0 176 0.0


and 3 conditions

line !l l&&!r l&&r condition
168 0 0 0 $opts{'qcount1'} and not $opts{'onepass'}
194 0 0 0 UNIVERSAL::isa($_, 'DDC::Any::CQToken') and $_->getMatchId == 2
201 0 0 0 UNIVERSAL::isa($nod, 'DDC::Any::CQToken') and $nod->getMatchId == 2
0 0 0 UNIVERSAL::isa($nod, 'DDC::Any::CQToken') and $nod->getMatchId == 2 and not UNIVERSAL::isa($nod, 'DDC::Any::CQTokAny')
211 0 0 0 UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprToken') && $_->getMatchId == 2
531 0 0 0 UNIVERSAL::isa($nod, 'DDC::Any::CQToken') and $nod->getMatchId == 2
555 0 0 0 $dfilter and not grep({UNIVERSAL::isa($_, 'DDC::Any::CQFDateSort');} @$filters)
583 0 0 0 UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprRegex') and UNIVERSAL::isa($_->getSrc, 'DDC::Any::CQCountKeyExprBibl')
597 0 0 0 $_->getReplacement eq '' and $_->getPattern =~ /^(.)\.\*\$/
616 0 0 0 UNIVERSAL::can($nod, 'getMatchId') and $nod->getMatchId == 2
660 0 0 0 $nod->isa('DDC::Any::CQToken') and not $nod->HasMatchId
707 0 0 0 UNIVERSAL::can($nod, 'getMatchId') and ($nod->getMatchId // 0) != $matchid
713 0 0 0 $dtr1 and $dtr2
722 0 0 0 UNIVERSAL::isa($nod, 'DDC::Any::CQWithout') and $nod2 eq $dtr2
802 0 0 0 $opts->{'needCountsByToken'} and $opts->{'onepass'}

or 2 conditions

line l !l condition
146 0 0 $_->[1] // '0'
174 0 0 $opts{'fcoef1'} // 1
259 0 0 $opts{'slice'} || 1
261 0 0 $fN{$y} || $N || 0
392 0 0 $server ||= 'localhost'
394 0 0 $port ||= 50000
397 0 0 $rel->{'ddcTimeout'} // 300
413 0 0 $opts{'logas'} // 'ddcQuery'
415 0 0 ($opts{'logTrunc'} // (ref $rel ? $rel->{'logTrunc'} : undef)) // -1
419 0 0 $opts{'limit'} // -1
429 0 0 $result->{'error_'} // '(undefined error)'
430 0 0 $result->{'end_'} // 0
0 0 $result->{'nhits_'} // 4294967296
431 0 0 $result->{'end_'} // '?'
0 0 $result->{'nhits_'} // '?'
453 0 0 $dops->[$_] //= '<'
493 0 0 ($opts->{'query'} =~ s/\s*\#limit\s*[\s\[]\s*([\+\-]?\d+)\s*\]?//i ? $1 : $opts->{'limit'} // $rel->{'ddcLimit'}) || -1
494 0 0 ($opts->{'query'} =~ s/\s*\#samp(?:le)?\s*[\s\[]\s*([\+\-]?\d+)\s*\]?//i ? $1 : $opts->{'sample'} // $rel->{'ddcSample'}) || -1
495 0 0 ($opts->{'query'} =~ s/\s*\#d(?:ist)?max\s*[\s\[]\s*([\+\-]?\d+)\s*\]?//i ? $1 : $opts->{'dmax'} // $rel->{'dmax'}) || 1
496 0 0 ($opts->{'query'} =~ s/\s*\#c?fmin\s*[\s\[]\s*([\+\-]?\d+)\s*\]?//i ? $1 : $opts->{'cfmin'} // $rel->{'cfmin'}) // ''
594 0 0 ref $_ // ''
608 0 0 ref $_ // '(undefined)'
628 0 0 $cfmin // 1
654 0 0 $matchid //= 0
675 0 0 $matchid //= 1
704 0 0 $matchid //= 1
707 0 0 $nod->getMatchId // 0
818 0 0 $ATTR_SPECIFICITY{$gbattrs[$_]} // 0

or 3 conditions

line l !l&&r !l&&!r condition
97 0 0 0 $coldb->{'ddcServer'} or $opts{'ddcServer'}
148 0 0 0 $y2prf{$y} //= 'DiaColloDB::Profile'->new('label', $y)
252 0 0 0 $fN{$prf->{'label'}} || $N
327 0 0 0 $y2prf{$y} //= 'DiaColloDB::Profile'->new('label', $y, 'titles', $opts{'gbtitles'})
415 0 0 0 $opts{'logTrunc'} // (ref $rel ? $rel->{'logTrunc'} : undef)
421 0 0 0 $trunc < 0 || length $qstr <= $trunc
425 0 0 0 $cli->open or $rel->logconfess($coldb->{'error'} = "${logas}: failed to connect to DDC server on $rel->{'ddcServer'}: $!")
429 0 0 0 $result->{'error_'} or $result->{'istatus_'}
0 0 0 $result->{'error_'} or $result->{'istatus_'} or $result->{'nstatus_'}
0 0 0 $result->{'error_'} or $result->{'istatus_'} or $result->{'nstatus_'} or not $result->{'counts_'}
440 0 0 0 UNIVERSAL::isa($qnod, 'DDC::Any::CQAnd') or UNIVERSAL::isa($qnod, 'DDC::Any::CQOr')
496 0 0 0 $opts->{'cfmin'} // $rel->{'cfmin'}
501 0 0 0 $qdtr->getOptions || 'DDC::Any::CQueryOptions'->new
512 0 0 0 @qnodes1 or @qnodes2
518 0 0 0 $gbrestr //= 'DDC::Any::CQTokRegex'->new('p', $coldb->{'pgood'}, 0)
519 0 0 0 $gbrestr // 'DDC::Any::CQTokAny'->new
549 0 0 0 $fcoef //= $rel->fcoef($qdtr)
583 0 0 0 not defined $_ or UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprConstant')
0 0 0 not defined $_ or UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprConstant') or UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprDate')
617 0 0 0 $qtconds // $nod
633 0 0 0 $fcoef_user // $fcoef / $rel->fcoef($qcount1->getDtr)
656 0 0 0 $nod->isa('DDC::Any::CQWith') or $nod->isa('DDC::Any::CQToken')
713 0 0 0 $dtr1 or $dtr2
798 0 0 0 $opts->{'needCountsByToken'} //= $rel->needCountsByToken($qcount)
839 0 0 0 not @mspvals or $qlen2 >= $max_qlen