blib/lib/Getopt/App.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 41 | 75.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
166 | 45 | 0 | 12 | not $Getopt::App::APP_CLASS and defined wantarray |
174 | 35 | 0 | 10 | defined $ENV{'COMP_POINT'} and defined $ENV{'COMP_LINE'} |
207 | 16 | 4 | 1 | $argv->[0] and $argv->[0] =~ /^-/u |
221 | 7 | 1 | 21 | $exit_value and $exit_value =~ /^\d{1,3}$/u |
240 | 2 | 1 | 12 | $argv->[0] and $argv->[0] =~ /^\w/u |
line | l | !l | condition |
---|---|---|---|
65 | 1 | 0 | $package || "package main\n" |
88 | 15 | 8 | $argv || [@ARGV] |
113 | 3 | 1 | $usage //= "" |
118 | 1 | 3 | $SUBCOMMANDS || [] |
4 | 0 | $OPTIONS || [] | |
255 | 6 | 2 | $o[1] //= "" |
273 | 5 | 0 | $s->[2] // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
105 | 0 | 4 | 0 | shift() || (caller)[1] |
159 | 0 | 49 | 0 | ref $class || $class |
164 | 45 | 12 | 0 | $Getopt::App::APP_CLASS || caller |
220 | 7 | 16 | 6 | $app->$call_maybe("getopt_post_process_exit_value", $exit_value) // $exit_value |