| blib/lib/Complete/Util.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 51 | 79 | 64.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 365 | 160 | 13 | 5 | $excluden and $excluden->{$eln} |
| 373 | 159 | 10 | 4 | $rmapn and $rmapn->{$eln} |
| 386 | 14 | 31 | 0 | @words and $COMPLETE_UTIL_TRACE |
| 390 | 43 | 0 | 2 | $word_mode and not @words |
| 423 | 0 | 2 | 0 | @words and $COMPLETE_UTIL_TRACE |
| 427 | 38 | 3 | 4 | $char_mode and not @words |
| 41 | 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 | 38 | 4 | 3 | $char_mode and not @words |
| 42 | 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 | 44 | 0 | 1 | $fuzzy and not @words |
| 518 | 0 | 1 | 0 | @words and $COMPLETE_UTIL_TRACE |
| 522 | 41 | 0 | 4 | $rmapn and @words |
| 810 | 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 | 46 | 0 | $args{'word'} // "" |
| 331 | 0 | 7 | $excluden->{$eln} //= 1 |
| 458 | 0 | 1 | $ENV{'COMPLETE_UTIL_LEVENSHTEIN'} // "" |
| 575 | 4 | 0 | $args{'word'} // "" |
| 679 | 19 | 0 | delete $args{'word'} // "" |
| 680 | 0 | 19 | delete $args{'sep'} // "," |
| 804 | 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; } } |