Branch Coverage

blib/lib/App/Pipeline/Simple.pm
Criterion Covered Total %
branch 63 128 49.2


line true false branch
41 0 3 @args == 1 ? :
44 1 2 if defined $args{'dir'}
50 1 7 if $key eq 'config'
51 1 6 if $key eq 'dir'
61 1 2 if defined $args{'config'}
64 0 2 if not $$self{'config'} and defined $self->dir and -e $self->dir . '/config.yml'
68 0 2 unless $$self{'config'} or $self->debug
93 1 2 if ($self->dir)
118 3 1 if (defined $value)
131 7 22 if (defined $value)
139 2 0 if (defined $value)
147 2 1 if (defined $value)
155 1 1 if (defined $value)
163 1 0 if (defined $value)
172 0 0 if (defined $value)
181 0 1 if (defined $value)
189 0 1 if (defined $value)
198 0 0 if (defined $value)
207 2 2 if (defined $value)
215 3 31 if (defined $value)
224 1 0 if ($config)
229 0 1 unless -e $config
232 1 0 if ($self->dir and not -e $self->dir . '/config.yml')
266 1 4 unless $$nexts{$step->id}
276 0 1 if ($self->itype and $self->input)
287 0 0 unless $key eq 'in'
288 0 0 unless defined $$arg{'type'}
289 0 0 unless $$arg{'type'} eq $self->itype
312 2 21 if ($dir)
313 1 1 unless -e $dir and -d $dir
314 0 2 unless -e $dir and -d $dir
318 8 15 unless $$self{'_dir'}
343 0 1 unless ($self->dir)
360 0 1 if ($self->start) { }
1 0 elsif (-e $self->dir . '/pipeline.log') { }
369 0 1 unless &open(my $LOG, '<', $self->dir . '/pipeline.log')
378 0 0 if /Run started/
383 0 0 unless /\[(\d+)\]/
385 0 0 unless /\| (Running|Finished) +\[(\w+)\]/
386 0 0 if $1 eq 'Running'
387 0 0 if $1 eq 'Finished'
388 0 0 if /DONE/
392 0 1 if (scalar @steps == 0 and $done) { }
0 1 elsif (@steps) { }
422 0 5 unless $step
427 0 0 unless $$arg{'key'} eq 'in'
428 0 0 unless $$arg{'type'} =~ /file|dir/
438 0 5 if (defined $$self{'_stop'} and $step->id eq $$self{'_stop'}) { }
459 0 10 if (defined $$step{'path'})
461 0 0 unless substr($str, -1, 1) eq '/'
472 20 8 if (ref $arg) { }
473 2 18 if (defined $$arg{'type'} and $$arg{'type'} eq 'unnamed') { }
18 0 elsif (defined $$arg{'type'} and $$arg{'type'} eq 'redir') { }
0 0 elsif (defined $$arg{'value'}) { }
477 8 10 if ($key eq 'in') { }
10 0 elsif ($key eq 'out') { }
492 2 6 if ($arg) { }
501 5 5 if $display
529 0 0 if ($$arg{'key'} eq 'out') { }
0 0 elsif ($$arg{'key'} eq 'in' and $$arg{'type'} ne 'redir') { }
531 0 0 if $$outputs{$$arg{'value'}}
541 0 0 if $prev_step_id ne $step->id and $prev_step_id eq $self->id
567 0 0 if ($self->description)
575 0 0 if ($step->each_next) { }