Branch Coverage

blib/lib/DiaColloDB/Relation/DDC.pm
Criterion Covered Total %
branch 0 226 0.0


line true false branch
57 0 0 if defined $rel->{'base'}
65 0 0 ref $that ? :
68 0 0 unless $rel->{'ddcServer'}
80 0 0 unless $rel = $rel->fromDB($coldb, %opts)
81 0 0 if $rel->{'base'}
97 0 0 unless $coldb->{'ddcServer'} or $opts{'ddcServer'}
135 0 0 unless my $rel = $that->fromDB($coldb, %opts)
161 0 0 unless defined($prf = $y2prf{$y = $_->[1]})
163 0 0 if exists $prf->{'f12'}{$key}
168 0 0 if ($opts{'qcount1'} and not $opts{'onepass'}) { }
173 0 0 unless defined($prf = $y2prf{$y = $_->[1]})
179 0 0 if ($opts{'needCountsByToken'}) { }
0 0 elsif (grep {not UNIVERSAL::isa($_, 'DDC::Any::CQTokAny') if UNIVERSAL::isa($_, 'DDC::Any::CQToken') and $_->getMatchId == 2;} @{$qcount->Descendants;}) { }
182 0 0 if UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprToken')
189 0 0 unless defined($prf = $y2prf{$y = $_->[1]})
194 0 0 if UNIVERSAL::isa($_, 'DDC::Any::CQToken') and $_->getMatchId == 2
201 0 0 if (UNIVERSAL::isa($nod, 'DDC::Any::CQToken') and $nod->getMatchId == 2 and not UNIVERSAL::isa($nod, 'DDC::Any::CQTokAny'))
216 0 0 unless defined($prf = $y2prf{$y = $_->[1]})
232 0 0 $opts{'slice'} ? :
246 0 0 unless ($f1 = $prf->{'f1'})
253 0 0 if $f1 > $prf->{'N'}
258 0 0 if ($opts{'fill'})
260 0 0 if exists $y2prf{$y}
277 0 0 unless utf8::is_utf8($_)
302 0 0 unless my $rel = $that->fromDB($coldb, %opts)
311 0 0 if (not $slice2keys = $opts{'slice2keys'}) { }
0 0 elsif (not UNIVERSAL::isa($slice2keys, 'HASH')) { }
328 0 0 UNIVERSAL::isa($ykeys, 'HASH') ? :
340 0 0 unless defined($prf = $y2prf{$y = $_->[1]})
342 0 0 if exists $prf->{'f12'}{$key}
381 0 0 if (defined $rel->{'dclient'})
388 0 0 unless $rel->{'ddcServer'}
393 0 0 if $server =~ s/\:([0-9]+)$//
414 0 0 exists $opts{'loglevel'} ? :
415 0 0 ref $rel ? :
417 0 0 ref $query ? :
419 0 0 if exists $opts{'limit'}
421 0 0 $trunc < 0 || length $qstr <= $trunc ? :
425 0 0 unless defined $cli->{'sock'}
429 0 0 if $result->{'error_'} or $result->{'istatus_'} or $result->{'nstatus_'} or not $result->{'counts_'}
430 0 0 ($result->{'end_'} // 0) < ($result->{'nhits_'} // 4294967296) ? :
440 0 0 if (UNIVERSAL::isa($qnod, 'DDC::Any::CQNear')) { }
0 0 elsif (UNIVERSAL::isa($qnod, 'DDC::Any::CQAnd') or UNIVERSAL::isa($qnod, 'DDC::Any::CQOr')) { }
0 0 elsif (UNIVERSAL::isa($qnod, 'DDC::Any::CQSeq')) { }
454 0 0 if ($dops->[$_] eq '<') { }
0 0 elsif ($dops->[$_] eq '>') { }
496 0 0 $opts->{'query'} =~ s/\s*\#c?fmin\s*[\s\[]\s*([\+\-]?\d+)\s*\]?//i ? :
497 0 0 $opts->{'query'} =~ s/\s*\#f?coef\s*[\s\[]s*([\+\-]?\d*\.?\d+(?:[eE][\+-]?\d+)?)\s*\]?//i ? :
509 0 0 if $_->getMatchId <= 1
510 0 0 if $_->getMatchId == 2
512 0 0 unless @qnodes1 or @qnodes2
517 0 0 if (not @qnodes2) { }
0 0 elsif ($gbrestr) { }
518 0 0 if $coldb->{'pgood'}
521 0 0 if $dmax < 1
531 0 0 if (UNIVERSAL::isa($nod, 'DDC::Any::CQToken') and $nod->getMatchId == 2)
544 0 0 unless $opts->{'query'} =~ /\#(?:sep(?:arate)?|nojoin)(?:_hits)?\b/i
555 0 0 if ($dfilter and not grep({UNIVERSAL::isa($_, 'DDC::Any::CQFDateSort');} @$filters))
556 0 0 $dlo ? :
0 0 $dhi ? :
564 0 0 if ($sample > 0)
567 0 0 if (UNIVERSAL::isa($_, 'DDC::Any::CQFRandomSort'))
568 0 0 unless $_->getArg1
573 0 0 unless ($gotseed)
583 0 0 if (not defined $_ or UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprConstant') or UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprDate')) { }
0 0 elsif (UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprToken')) { }
0 0 elsif (UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprBibl')) { }
0 0 elsif (UNIVERSAL::isa($_, 'DDC::Any::CQCountKeyExprRegex') and UNIVERSAL::isa($_->getSrc, 'DDC::Any::CQCountKeyExprBibl')) { }
588 0 0 defined $qtconds ? :
589 0 0 if $_->getMatchId == 0
594 0 0 if (ref $_ // '') eq 'DDC::Any::CQFHasField'
0 0 unless grep {$_->getArg0 eq $label if (ref $_ // '') eq 'DDC::Any::CQFHasField';} @$filters
597 0 0 if ($_->getReplacement eq '' and $_->getPattern =~ /^(.)\.\*\$/) { }
0 0 elsif ($_->getReplacement eq '') { }
613 0 0 if $qtconds
616 0 0 if (UNIVERSAL::can($nod, 'getMatchId') and $nod->getMatchId == 2)
621 0 0 unless $qtemplate->getOptions
628 0 0 if ($cfmin // 1) <= 1
640 0 0 $_->can('getIndexName') ? :
651 0 0 UNIVERSAL::isa($_[0], 'DiaColloDB::Relation::DDC') ? :
653 0 0 unless UNIVERSAL::isa($nod, 'DDC::Any::CQuery')
656 0 0 if ($nod->isa('DDC::Any::CQWith') or $nod->isa('DDC::Any::CQToken'))
657 0 0 if $nod->toString =~ /=[0-9]+$/
660 0 0 if $nod->isa('DDC::Any::CQToken') and not $nod->HasMatchId
673 0 0 UNIVERSAL::isa($_[0], 'DiaColloDB::Relation::DDC') ? :
680 0 0 unless ($idtr)
682 0 0 if $matchid != 1
690 0 0 unless not UNIVERSAL::can($_, 'getMatchId')
702 0 0 UNIVERSAL::isa($_[0], 'DiaColloDB::Relation::DDC') ? :
705 0 0 unless defined $nod
707 0 0 if (UNIVERSAL::can($nod, 'getMatchId') and ($nod->getMatchId // 0) != $matchid) { }
0 0 elsif (UNIVERSAL::isa($nod, 'DDC::Any::CQBinOp')) { }
0 0 elsif (UNIVERSAL::isa($nod, 'DDC::Any::CQSeq')) { }
0 0 elsif (UNIVERSAL::isa($nod, 'DDC::Any::CQNear')) { }
713 0 0 if ($dtr1 and $dtr2) { }
0 0 elsif ($dtr1 or $dtr2) { }
720 0 0 $dtr1 ? :
722 0 0 if UNIVERSAL::isa($nod, 'DDC::Any::CQWithout') and $nod2 eq $dtr2
723 0 0 if $negated
731 0 0 if ($nitems == 0) { }
0 0 elsif ($nitems == 1) { }
738 0 0 if $nod->Negated
744 0 0 defined $_ ? :
751 0 0 if (not @dtrs) { }
0 0 elsif (@dtrs == 1) { }
756 0 0 if $nod->Negated
802 0 0 if ($opts->{'needCountsByToken'} and $opts->{'onepass'}) { }
0 0 elsif ($opts->{'needCountsByToken'}) { }
812 0 0 UNIVERSAL::can($_, 'getIndexName') ? :
820 0 0 if $mspa eq 'DEFAULT'
839 0 0 if (not @mspvals or $qlen2 >= $max_qlen)
868 0 0 UNIVERSAL::isa($_[0], 'DiaColloDB::Relation::DDC') ? :
872 0 0 if UNIVERSAL::can($_, 'getMatchId')