Branch Coverage

blib/lib/Test/Clustericious/Command.pm
Criterion Covered Total %
branch 30 64 46.8


line true false branch
47 0 11 unless 'Test::Clustericious::Command'->_can_execute_in_tmp
49 8 3 unless (defined $command)
51 8 0 if defined $num
56 3 0 if ($command =~ /^(.*)\.conf$/)
59 0 3 if (defined $ENV{'CLUSTERICIOUS_COMMAND_TEST'} and -r $ENV{'CLUSTERICIOUS_COMMAND_TEST'}) { }
67 0 0 unless defined $config
69 0 0 if defined $config->{'path'}
80 0 0 if (which($command)) { }
82 0 0 if defined $num
95 0 7 unless $caller eq 'main'
104 13 5 unless (-d $dir)
109 18 0 unless (-f $file)
111 9 9 $name =~ m[^bin/] ? :
113 9 9 if ($name =~ m[^bin/]) { }
132 0 16 ref $_ ? :
136 8 0 unless $dst->is_absolute
138 3 5 unless (-d $dst)
146 0 20 if ($child->is_dir) { }
153 20 0 unless (-f $dst)
155 5 15 if (-x $child) { }
192 0 31 unless $ok
193 0 31 if $exit == -1
194 0 31 if $exit & 128
234 0 0 if -f $new
264 0 31 unless ($self->exit == $value)
266 0 0 if $self->cmd
267 0 0 if $self->out
268 0 0 if $self->err
278 22 7 if $self->out
279 11 18 if $self->err
288 0 0 if $self->out
289 0 0 if $self->err