| line |
true |
false |
branch |
|
20
|
0 |
0 |
ref $stuff[0] || @stuff % 2 ? : |
|
|
0 |
0 |
@stuff == 0 ? : |
|
29
|
0 |
0 |
ref $app eq 'ARRAY' ? : |
|
|
87 |
0 |
ref $app eq 'HASH' ? : |
|
42
|
6 |
8 |
if ($request eq '-command') { } |
|
|
0 |
8 |
elsif ($request eq '-inherit') { } |
|
|
0 |
8 |
elsif ($request eq '-register') { } |
|
|
4 |
4 |
elsif ($request eq '-spec') { } |
|
55
|
0 |
4 |
unless @args |
|
57
|
0 |
4 |
unless ref $args[0] eq "HASH" |
|
84
|
1476 |
4876 |
if @newval |
|
92
|
0 |
2370 |
unless defined $aref |
|
98
|
135 |
0 |
wantarray ? : |
|
107
|
111 |
24 |
if (my(@aliases) = $self->_rwad(@r)) |
|
108
|
22 |
2 |
if (defined(my $name = $self->_rwn("name"))) |
|
140
|
951 |
18 |
if ref $spec eq "HASH" |
|
141
|
18 |
0 |
unless ref $spec |
|
142
|
0 |
18 |
unless ref $spec eq "ARRAY" |
|
144
|
0 |
18 |
unless my $method = $self->can($method_name) |
|
153
|
18 |
0 |
if ($_ eq '+parent') { } |
|
165
|
0 |
0 |
if not $_->{'transmit_exact'} and $name =~ /$namerx/u |
|
176
|
153 |
154 |
@args && ref $args[0] ? : |
|
205
|
827 |
126 |
if $is_overridable{$dst_key} or not exists $retval{$dst_key} |
|
206
|
953 |
0 |
unless $this_overridable |
|
223
|
5 |
655 |
ref $source eq 'ARRAY' ? : |
|
224
|
2 |
658 |
@opts && ref $opts[0] ? : |
|
226
|
658 |
2 |
unless (ref $src) |
|
228
|
334 |
324 |
if defined $priority |
|
231
|
0 |
660 |
unless my $sub = $self->ref_to_sub($locator) |
|
234
|
160 |
500 |
if defined $residuals |
|
238
|
499 |
41 |
if $sequence[$i - 1][0] <= $sequence[$i][0] |
|
252
|
160 |
0 |
unless (defined $value) |
|
254
|
96 |
64 |
if $self->list_children |
|
255
|
0 |
160 |
if $self->allow_residual_options |
|
272
|
0 |
300 |
ref $go eq 'ARRAY' ? : |
|
275
|
0 |
160 |
unless Getopt::Long::GetOptionsFromArray(\@args, \%option_for, @specs) |
|
280
|
0 |
160 |
if $strict and @args and $args[0] =~ /\A - . /msux |
|
287
|
0 |
295 |
if defined $o->{'name'} |
|
289
|
295 |
0 |
if defined $o->{'getopt'} and $o->{'getopt'} =~ /\A(\w[-\w]*)/msux |
|
291
|
0 |
0 |
if defined $o->{'environment'} and $o->{'environment'} ne 1 |
|
306
|
0 |
9 |
unless defined $conf->{$key} |
|
308
|
0 |
9 |
unless ref $conf eq "HASH" |
|
317
|
8 |
100 |
$self->auto_environment ? : |
|
|
196 |
108 |
exists $ospec->{'environment'} ? : |
|
319
|
211 |
93 |
unless ($env // "") eq 1 |
|
336
|
40 |
230 |
defined $en && exists $ENV{$en} ? : |
|
344
|
7 |
9 |
unless defined(my $filename = $self->config($key)) |
|
350
|
0 |
9 |
unless open my $fh, $mode, $file |
|
364
|
85 |
73 |
unless my $parent = $self->parent |
|
375
|
0 |
155 |
if $blame |
|
382
|
32 |
0 |
if @keys == 1 |
|
389
|
0 |
0 |
if @value |
|
396
|
0 |
160 |
if @n |
|
397
|
160 |
0 |
unless $commit |
|
406
|
0 |
160 |
if @n |
|
410
|
0 |
160 |
if ($validator) { } |
|
|
0 |
160 |
elsif (my $params_validate = $self->params_validate) { } |
|
411
|
0 |
0 |
unless ref $validator eq "CODE" |
|
417
|
0 |
0 |
if (my $config_validator = $params_validate->{'config'} // undef) |
|
421
|
0 |
0 |
if (my $args_validator = $params_validate->{'args'} // undef) |
|
432
|
0 |
92 |
unless defined $command |
|
435
|
87 |
64 |
if $child->supports($command) |
|
441
|
0 |
26 |
unless defined(my $default = $self->default_child) |
|
443
|
22 |
4 |
if $default eq "-self" |
|
444
|
0 |
4 |
unless my $child = $self->find_matching_child($default) |
|
460
|
64 |
96 |
unless my(@candidates) = $self->list_children |
|
462
|
70 |
26 |
if (@residuals) { } |
|
|
26 |
0 |
elsif (defined(my $default = $self->default_child)) { } |
|
463
|
65 |
5 |
if (my $child = $self->find_matching_child($residuals[0])) |
|
473
|
1 |
4 |
if (defined $fallback) |
|
474
|
1 |
0 |
if $fallback eq "-self" |
|
475
|
0 |
0 |
if $fallback eq "-default" |
|
477
|
0 |
0 |
if (my $child = $self->find_matching_child($fallback)) |
|
506
|
0 |
4067 |
if (opendir my $dh, 'File::Spec'->catpath($v, $dirs, '')) { } |
|
513
|
0 |
0 |
if -e $path and not -d $path and substr($_, 0, length $bprefix) eq $bprefix |
|
533
|
302 |
140 |
if $self->force_auto_children // @children |
|
540
|
5 |
906 |
if $inflate |
|
560
|
0 |
0 |
unless eval {
do {
require $file
}
} |
|
568
|
0 |
706 |
unless defined $spec |
|
570
|
48 |
658 |
if ref $spec eq "CODE" |
|
571
|
0 |
658 |
ref $spec eq 'ARRAY' ? : |
|
575
|
657 |
1 |
unless length($class // "") |
|
576
|
0 |
1 |
unless $class->can($function) |
|
581
|
0 |
220 |
unless $class->can("new") |
|
590
|
220 |
0 |
unless (&blessed($child)) |
|
591
|
43 |
135 |
ref $child eq 'HASH' ? : |
|
|
42 |
178 |
ref $child eq 'ARRAY' ? : |
|
604
|
5 |
0 |
unless defined $fto and $fto =~ /\A(?: 0 | [1-9]\d* )\z/u |
|
606
|
0 |
0 |
if $fto <= $#children |
|
612
|
0 |
46 |
unless my $spec = $self->_rw |
|
613
|
0 |
46 |
unless my $sub = $self->ref_to_sub($spec) |
|
623
|
69 |
87 |
if defined $child |
|
638
|
0 |
58 |
if @rest |
|
640
|
18 |
40 |
if defined $subc |
|
641
|
0 |
58 |
unless defined $target |
|
651
|
0 |
64 |
unless @aliases |
|
653
|
2 |
62 |
if @aliases |
|
656
|
12 |
18 |
unless @lines |
|
664
|
0 |
29 |
if $refch eq "CODE" |
|
667
|
0 |
29 |
if ($refch eq 'GLOB') { } |
|
|
0 |
29 |
elsif ($refch eq 'SCALAR') { } |
|
|
0 |
29 |
elsif ($refch) { } |
|
671
|
0 |
0 |
unless open $fh, ">", $channel |
|
678
|
29 |
0 |
if ($channel eq '-' or lc $channel eq '-stdout') { } |
|
|
0 |
0 |
elsif (lc $channel eq '-stderr') { } |
|
685
|
0 |
0 |
unless open $fh, ">", $channel |
|
687
|
29 |
0 |
if length($binmode // "") |
|
698
|
29 |
0 |
unless $pof |
|
705
|
6 |
1 |
if (defined(my $commands = $self->list_commands_for($target))) { } |
|
725
|
15 |
19 |
if (substr($getopt, -1, 1) eq '!') { } |
|
|
1 |
18 |
elsif ($getopt =~ s/:\+ ([\@%])? \z//msux) { } |
|
|
1 |
17 |
elsif (substr($getopt, -1, 1) eq '+') { } |
|
|
15 |
2 |
elsif ($getopt =~ s/(
[:=]) # 1 mode
([siof]) # 2 type
([\@%])? # 3 desttype
(?:
\{
(\d*)? # 4 min
,?
(\d*)? # 5 max
\}
)? \z//msux) { } |
|
|
1 |
1 |
elsif ($getopt =~ s/: (\d+) ([\@%])? \z//msux) { } |
|
736
|
0 |
1 |
if defined $desttype and $desttype eq "\@" |
|
759
|
14 |
1 |
$1 eq '=' ? : |
|
764
|
0 |
15 |
if (defined $min) |
|
765
|
0 |
0 |
$min ? : |
|
774
|
0 |
15 |
if defined $min and $min > 1 |
|
775
|
0 |
15 |
if defined $max and length $max |
|
777
|
1 |
14 |
if defined $desttype and $desttype eq "\@" |
|
786
|
0 |
1 |
if defined $desttype and $desttype eq "\@" |
|
795
|
15 |
19 |
if ($type eq 'bool-negatable') { } |
|
|
2 |
17 |
elsif ($type eq 'bool' or $mode eq 'increment') { } |
|
|
3 |
14 |
elsif ($mode eq 'optional') { } |
|
797
|
13 |
16 |
if (length $_ == 1) { } |
|
803
|
1 |
2 |
if (length $_ == 1) { } |
|
809
|
0 |
3 |
if (length $_ == 1) { } |
|
815
|
13 |
14 |
if (length $_ == 1) { } |
|
834
|
21 |
2 |
if (defined(my $description = $target->description)) |
|
841
|
11 |
12 |
if $target->parent |
|
845
|
17 |
6 |
if (my(@options) = $target->options) { } |
|
849
|
17 |
17 |
if $n++ |
|
854
|
34 |
0 |
if (exists $opt->{'getopt'}) |
|
862
|
14 |
20 |
if (defined(my $env = $self->environment_variable_name($opt))) |
|
868
|
8 |
26 |
if exists $opt->{'default'} |
|
877
|
12 |
11 |
if (defined(my $commands = $self->list_commands_for($target))) { } |
|
905
|
0 |
0 |
$self->config('include_auto') ? : |
|
908
|
0 |
0 |
unless my($name) = $command->aliases |
|
910
|
0 |
0 |
if $name =~ /\A(?: help | commands | tree)\z/msux and $exclude_auto |
|
913
|
0 |
0 |
if (defined(my $subtree = $self->list_commands_for($command))) |
|
917
|
0 |
0 |
unless @lines |