Condition Coverage

blib/lib/Getopt/Alt.pm
Criterion Covered Total %
condition 70 131 53.4


and 3 conditions

line !l l&&!r l&&r condition
240 11 1 3 @args > 2 and ref $args[0] eq 'HASH'
12 0 3 @args > 2 and ref $args[0] eq 'HASH' and ref $args[1] ne 'ARRAY'
254 0 1 6 ref $_ and ref $_ eq 'Getopt::Alt::Exception'
1 3 3 ref $_ and ref $_ eq 'Getopt::Alt::Exception' and $_->help
298 0 0 0 $self->auto_complete and $self->opt->auto_complete
0 0 0 $self->auto_complete and $self->opt->auto_complete and path($0)->basename eq path($args[0])->basename
304 0 0 0 $self->opt->auto_complete and $self->sub_command
0 0 0 $self->opt->auto_complete and $self->sub_command and $self->has_auto_complete_shortener
328 78 0 0 $self->opt->auto_complete and $opt_name eq 'auto_complete_list'
334 58 10 10 not $used and $short
68 0 10 not $used and $short and defined $arg_data
10 8 2 not $used and $short and defined $arg_data and length $arg_data
337 78 0 0 $self->has_conf_section and $self->conf_section
78 0 0 $self->has_conf_section and $self->conf_section and $self->conf_section eq $opt_name
0 0 0 $self->has_conf_section and $self->conf_section and $self->conf_section eq $opt_name and @args_orig
368 3 0 7 ref $_ eq 'ARRAY' and @$_ == 1
370 10 0 0 $self->has_auto_complete and $self->opt->auto_complete
383 0 4 0 @{$self->files;} and $self->files->[0] eq '--'
385 4 0 0 not @{$self->files;} and @args
389 0 0 4 not $self->cmd and @{$self->files;}
391 64 0 13 not $passed_args and $self->files
396 1 0 3 ref $self->sub_command eq 'HASH' and !$self->has_auto_complete || $self->cmd && $self->sub_command->{$self->cmd}
1 0 0 $self->sub_command =~ /^[A-Z].*::$/ and !$self->has_auto_complete || $self->cmd && $self->sub_command->{$self->cmd}
415 1 0 2 @$sub == 2 && ref $sub->[0] eq 'HASH' && ref $sub->[1] eq 'ARRAY'
451 8 0 0 $self->auto_complete and $self->opt->auto_complete
7 1 0 $self->sub_command and not $self->cmd
479 2 0 2 $self->sub_command and ref $self->sub_command
2 0 2 $self->sub_command and ref $self->sub_command and not $self->cmd
0 0 2 $ARGV[-1] and $ARGV[-1] =~ /^-/msx
523 88 3 3 $has_no and $long
532 514 282 30 $long and $opt->name eq $long
535 931 509 0 defined $long and $name eq $long
536 509 881 50 defined $short and $name eq $short
540 8 5 1 $long and $long =~ /^\d+$/msx
5 6 2 defined $short and $short =~ /^\d$/msx
569 6 0 0 $self->help_packages and $self->cmd
0 0 6 $self->help_package and $self->help_package ne '1'

or 2 conditions

line l !l condition
446 0 0 $self->sub_module_method || 'run'

or 3 conditions

line l !l&&r !l&&!r condition
249 14 0 0 not $self->help_package or $self->help_package eq 'Getopt::Alt'
261 4 0 0 not $self->help_package or $self->help_package eq 'Getopt::Alt'
396 3 0 0 !$self->has_auto_complete || $self->cmd && $self->sub_command->{$self->cmd}
0 0 0 !$self->has_auto_complete || $self->cmd && $self->sub_command->{$self->cmd}
540 1 3 10 $long and $long =~ /^\d+$/msx or defined $short and $short =~ /^\d$/msx
544 1 1 1 $long || $short