Branch Coverage

blib/lib/App/Spec/Run.pm
Criterion Covered Total %
branch 61 80 76.2


line true false branch
55 32 1 unless ($argv)
65 33 0 unless ($self->op)
72 30 3 unless ($self->response->halted)
81 14 16 unless ($ok)
84 9 5 unless ($completion_parameter)
90 21 12 unless ($self->response->halted)
94 5 16 if ($completion_parameter) { }
125 13 11 unless ref $text or $text =~ /\n\z/
131 1 27 unless ref $text or $text =~ /\n\z/
146 0 0 if (my $exit = $res->exit)
156 1 4 unless my $shell = $ENV{'PERL5_APPSPECRUN_SHELL'}
160 0 4 unless my $completion = $param->completion
162 2 2 if (ref $completion) { }
163 0 2 unless $op = $completion->{'op'}
166 0 2 unless my $possible_values = $param->values
167 0 2 unless $op = $possible_values->{'op'}
177 2 2 if ($unique)
180 0 2 unless is_arrayref($value)
190 2 7 if (ref $item eq 'HASH') { }
192 0 2 if $unique and $seen{$name}++
197 1 6 if $unique and $seen{$item}++
212 9 0 if ($key eq 'parameters' or $key eq 'options') { }
243 0 0 unless (defined wantarray)
249 0 19 $self->colorize($out) ? :
254 0 34 if (($ENV{'PERL5_APPSPECRUN_COLOR'} // "") eq "always")
257 32 2 if (($ENV{'PERL5_APPSPECRUN_COLOR'} // "") eq "never")
260 0 2 if ($out eq "out" and -t STDOUT or $out eq "err" and -t STDERR)
277 10 32 if ($multiple) { }
317 4 37 unless (defined $cmd)
318 1 3 if (not $op or $subcommand_required)
331 2 35 unless ($cmd_spec = $commands->{$cmd})
349 28 7 if $cmd_spec->op
350 6 29 if $cmd_spec->class
358 30 3 unless ($self->response->halted)
359 1 29 unless ($op)
360 0 1 if ($spec->has_subcommands) { }
375 29 1 if ($op =~ /^::/)
392 15 0 if ($_ eq 'error') { }
394 0 15 if $self->colorize($out)
403 0 60 unless exists $EVENTS{$event}