blib/lib/Getopt/App/Complete.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 18 | 94.4 |
line | true | false | branch |
---|---|---|---|
22 | 4 | 4 | if ($argv[$argv_index] and $argv[$argv_index] =~ /^\w/u and @$subcommands) |
24 | 12 | 3 | unless $argv[$argv_index] eq $subcommand->[0] |
31 | 5 | 2 | substr($ENV{'COMP_LINE'}, 0, $ENV{'COMP_POINT'}) =~ /(\S+)$/u ? : |
33 | 7 | 17 | if index($subcommand->[0], $got) == 0 |
38 | 0 | 7 | unless $Getopt::App::OPTIONS |
42 | 7 | 14 | length $opt == 1 ? : |
43 | 8 | 13 | unless index($opt, $got) == 0 |
53 | 3 | 1 | ($ENV{'SHELL'} || 'bash') =~ /\bzsh\b/u ? : |
55 | 3 | 1 | if ($shell eq 'zsh') { } |