Branch Coverage

blib/lib/Metabrik/Shell/Command.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
75 0 0 unless $self->brik_help_run_undef_arg('system', $cmd)
80 0 0 if (defined $_)
90 0 0 unless (-f $bin)
92 0 0 if (-f "$path/$bin")
100 0 0 unless (-f $bin)
107 0 0 if ($self->use_sudo and $< != 0)
109 0 0 if (not ref $self->sudo_args and length $self->sudo_args)
117 0 0 if ($self->use_pager)
123 0 0 unless my $so = 'Metabrik::System::Os'->new_from_brik_init($self)
125 0 0 if ($self->capture_system)
126 0 0 if ($so->is_freebsd) { }
140 0 0 if (not $self->ignore_error and $? != 0)
152 0 0 if ($self->capture_system)
167 0 0 unless $self->brik_help_run_undef_arg('sudo_system', $cmd)
181 0 0 unless $self->brik_help_run_undef_arg('system_in_background', $cmd)
183 0 0 unless my $sp = 'Metabrik::System::Process'->new_from_brik_init($self)
197 0 0 unless $self->brik_help_run_undef_arg('sudo_system_in_background', $cmd)
199 0 0 unless my $sp = 'Metabrik::System::Process'->new_from_brik_init($self)
213 0 0 unless $self->brik_help_run_undef_arg('capture', $cmd)
218 0 0 if (defined $_)
228 0 0 unless (-f $bin)
230 0 0 if (-f "$path/$bin")
238 0 0 unless (-f $bin)
243 0 0 if ($self->use_globbing)
254 0 0 if ($self->use_sudo and $< != 0)
256 0 0 if (not ref $self->sudo_args and length $self->sudo_args)
272 0 0 if ($@) { }
0 0 elsif ($?) { }
281 0 0 if ($self->ignore_error) { }
295 0 0 if ($self->capture_stderr and $err ne 'undef')
300 0 0 if (not $self->as_matrix and $self->as_array) { }
0 0 elsif ($self->as_matrix) { }
318 0 0 unless $self->brik_help_run_undef_arg('sudo_capture', $cmd)
332 0 0 unless $self->brik_help_run_undef_arg('system_capture', $cmd)
346 0 0 unless $self->brik_help_run_undef_arg('sudo_system_capture', $cmd)
360 0 0 unless $self->brik_help_run_undef_arg('execute', $cmd)
362 0 0 if ($self->capture_system) { }
0 0 elsif ($self->capture_mode) { }
380 0 0 unless $self->brik_help_run_undef_arg('sudo_execute', $cmd)
382 0 0 if ($self->capture_system) { }
0 0 elsif ($self->capture_mode) { }