Condition Coverage

blib/lib/Complete/Util.pm
Criterion Covered Total %
condition 57 88 64.7


and 3 conditions

line !l l&&!r l&&r condition
370 182 13 5 $excluden and $excluden->{$eln}
378 181 10 4 $rmapn and $rmapn->{$eln}
391 14 40 0 @words and $COMPLETE_UTIL_TRACE
395 52 0 2 $word_mode and not @words
428 0 2 0 @words and $COMPLETE_UTIL_TRACE
432 47 3 4 $char_mode and not @words
50 0 4 $char_mode and not @words and length $wordn
3 0 4 $char_mode and not @words and length $wordn and length $wordn <= 7
442 3 1 0 @words and $COMPLETE_UTIL_TRACE
446 47 4 3 $char_mode and not @words
51 0 3 $char_mode and not @words and length $wordn
4 0 3 $char_mode and not @words and length $wordn and length $wordn <= 7
456 1 2 0 @words and $COMPLETE_UTIL_TRACE
460 53 0 1 $fuzzy and not @words
523 0 1 0 @words and $COMPLETE_UTIL_TRACE
527 50 0 4 $rmapn and @words
994 0 1 3 $final->{$_} &&= $ans->{$_}

or 2 conditions

line l !l condition
157 3 1 $ans->{'words'} // []
4 0 @{$ans->{'words'} // [];} // 0
3 0 @$ans // 0
182 2 1 $ans->{'words'} // []
307 55 0 delete $args{'word'} // ""
336 0 7 $excluden->{$eln} //= 1
463 0 1 $ENV{'COMPLETE_UTIL_LEVENSHTEIN'} // ""
580 4 0 delete $args{'word'} // ""
686 22 0 delete $args{'word'} // ""
687 0 22 delete $args{'sep'} // ","
822 9 0 delete $args{'word'} // ""
823 0 9 delete $args{'sep'} // ","
826 0 9 delete $args{'uniq'} // 1
988 8 0 $ans->{'words'} // []

or 3 conditions

line l !l&&r !l&&!r condition
351 0 4 0 $rev_rmapn->{$vn} //= $k
462 0 1 0 $code_editdist //= do { my $env = $ENV{'COMPLETE_UTIL_LEVENSHTEIN'} // ""; if ($env eq "xs") { require Text::Levenshtein::XS; $editdist_flex = 0; \&Text::Levenshtein::XS::distance; } elsif ($env eq "flexible") { require Text::Levenshtein::Flexible; $editdist_flex = 1; \&Text::Levenshtein::Flexible::levenshtein_l; } elsif ($env eq "pp") { $editdist_flex = 0; \&Complete::Util::__editdist; } elsif (eval { do { require Text::Levenshtein::Flexible; 1 } }) { $editdist_flex = 1; \&Text::Levenshtein::Flexible::levenshtein_l; } else { $editdist_flex = 0; \&Complete::Util::__editdist; } }
854 2 4 3 @mentioned_elems == 0 or @mentioned_elems % 2 == 1