Branch Coverage

blib/lib/MooX/Ipc/Cmd.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
119 0 27 if $self->mock
123 13 14 if (scalar @{$cmd;} == 1) { }
171 0 9 if $self->mock
175 4 5 if (scalar @$cmd == 1) { }
193 9 0 unless defined $opt->{'valid_exit'} and $opt->{'valid_exit'} == 1
194 7 0 if (defined $output) { }
196 5 2 if (wantarray) { }
212 25 0 if (defined $output)
229 0 5 if $line =~ / Batch system concurrent query limit exceeded/
230 2 3 if defined $output
233 0 5 if ($self->logger('_cmd')->is_debug)
244 36 0 unless (exists $opt->{'valid_exit'})
249 3 33 if ($child_error == -1)
256 3 0 if defined $stderr
259 1 32 if (WIFSIGNALED($child_error)) { }
23 9 elsif (not &List::Util::any(sub { $_ eq $child_error; } , @{$$opt{'valid_exit'};})) { }
264 0 1 if ($self->_cmd_kill)
276 1 0 if defined $stderr
285 23 0 if defined $stderr