Condition Coverage

blib/lib/Getopt/App.pm
Criterion Covered Total %
condition 31 41 75.6


and 3 conditions

line !l l&&!r l&&r condition
154 45 0 12 not $Getopt::App::APP_CLASS and defined wantarray
162 35 0 10 defined $ENV{'COMP_POINT'} and defined $ENV{'COMP_LINE'}
195 16 4 1 $argv->[0] and $argv->[0] =~ /^-/u
209 7 1 21 $exit_value and $exit_value =~ /^\d{1,3}$/u
228 2 1 12 $argv->[0] and $argv->[0] =~ /^\w/u

or 2 conditions

line l !l condition
65 1 0 $package || "package main\n"
80 15 7 $argv || [@ARGV]
101 3 1 $usage //= ""
106 1 3 $SUBCOMMANDS || []
4 0 $OPTIONS || []
243 6 2 $o[1] //= ""
261 5 0 $s->[2] // ""

or 3 conditions

line l !l&&r !l&&!r condition
93 0 4 0 shift() || (caller)[1]
147 0 49 0 ref $class || $class
152 45 12 0 $Getopt::App::APP_CLASS || caller
208 7 16 6 $app->$call_maybe("getopt_post_process_exit_value", $exit_value) // $exit_value