Branch Coverage

blib/lib/App/Codeowners/Options.pm
Criterion Covered Total %
branch 20 54 37.0


line true false branch
16 0 2 if ($@) { }
17 0 0 $VERSION eq '9999.999' ? :
37 0 7 -t STDOUT ? :
76 0 0 if (my $command = $self->{'command'})
77 0 0 unless $self->command_options->{$command}
87 0 7 if grep {/\P{ASCII}/;} @args
93 0 7 unless my $opts = $self->get_options('args', \@args, 'spec', $self->early_options, 'config', 'pass_through')
99 0 7 if ($ENV{'CODEOWNERS_COMPLETIONS'})
105 0 0 if $cur eq ($args_copy[$cword] || '')
111 1 6 if ($opts->{'version'})
116 1 5 if ($opts->{'help'})
119 0 5 if ($opts->{'manual'})
122 0 5 if (defined $opts->{'shell_completion'})
130 0 5 unless ($command_options)
131 0 0 if defined $command
136 1 4 unless my $more_opts = $self->get_options('args', \@args, 'spec', $command_options)
149 0 4 unless grep {$_ eq $command;} @commands
156 0 4 unless $self->{'args'}
162 0 12 @_ == 1 && ref $_[0] eq 'HASH' ? :
173 0 12 if (my $fn = $args->{'callback'})
182 1 11 unless $p->getoptionsfromarray($args->{'args'}, %options)
192 0 0 if ($type eq 'bash') { }
241 0 0 if ($prev eq '--format' or $prev eq '-f') { }
0 0 elsif ($current =~ /^-/) { }
248 0 0 if (not $self->command) { }
273 0 0 if ($op eq '!') { }
277 0 0 if (length $name > 1) { }