blib/lib/Complete/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 51 | 79 | 64.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
365 | 165 | 13 | 5 | $excluden and $excluden->{$eln} |
373 | 164 | 10 | 4 | $rmapn and $rmapn->{$eln} |
386 | 14 | 33 | 0 | @words and $COMPLETE_UTIL_TRACE |
390 | 45 | 0 | 2 | $word_mode and not @words |
423 | 0 | 2 | 0 | @words and $COMPLETE_UTIL_TRACE |
427 | 40 | 3 | 4 | $char_mode and not @words |
43 | 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 | |
437 | 3 | 1 | 0 | @words and $COMPLETE_UTIL_TRACE |
441 | 40 | 4 | 3 | $char_mode and not @words |
44 | 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 | |
451 | 1 | 2 | 0 | @words and $COMPLETE_UTIL_TRACE |
455 | 46 | 0 | 1 | $fuzzy and not @words |
518 | 0 | 1 | 0 | @words and $COMPLETE_UTIL_TRACE |
522 | 43 | 0 | 4 | $rmapn and @words |
829 | 0 | 1 | 3 | $final->{$_} &&= $ans->{$_} |
line | l | !l | condition |
---|---|---|---|
156 | 3 | 1 | $ans->{'words'} // [] |
4 | 0 | @{$ans->{'words'} // [];} // 0 | |
3 | 0 | @$ans // 0 | |
181 | 2 | 1 | $ans->{'words'} // [] |
306 | 48 | 0 | $args{'word'} // "" |
331 | 0 | 7 | $excluden->{$eln} //= 1 |
458 | 0 | 1 | $ENV{'COMPLETE_UTIL_LEVENSHTEIN'} // "" |
575 | 4 | 0 | $args{'word'} // "" |
679 | 21 | 0 | delete $args{'word'} // "" |
680 | 0 | 21 | delete $args{'sep'} // "," |
823 | 8 | 0 | $ans->{'words'} // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
346 | 0 | 4 | 0 | $rev_rmapn->{$vn} //= $k |
457 | 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; } } |