| blib/lib/Getopt/App/Complete.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 17 | 18 | 94.4 |
| line | true | false | branch |
|---|---|---|---|
| 23 | 4 | 4 | if ($argv[$depth] and $argv[$depth] =~ /^\w/u and @$subcommands) |
| 26 | 12 | 3 | unless $argv[$depth] eq $subcommand->[0] |
| 34 | 5 | 2 | substr($ENV{'COMP_LINE'}, 0, $ENV{'COMP_POINT'}) =~ /(\S+)$/u ? : |
| 36 | 7 | 17 | if index($subcommand->[0], $got) == 0 |
| 41 | 0 | 7 | unless $Getopt::App::OPTIONS |
| 45 | 7 | 14 | length $opt == 1 ? : |
| 46 | 8 | 13 | unless index($opt, $got) == 0 |
| 56 | 3 | 1 | ($ENV{'SHELL'} || 'bash') =~ /\bzsh\b/u ? : |
| 58 | 3 | 1 | if ($shell eq 'zsh') { } |