Branch Coverage

blib/lib/Test/Stream/Workflow/Task.pm
Criterion Covered Total %
branch 87 92 94.5


line true false branch
49 1 315 unless $self->{'unit'}
58 1 671 if $self->{'exception'}
59 3 668 if $self->{'stage'} >= 3
66 108 204 if $self->{'no_final'}
67 1 203 if $self->{'no_subtest'}
89 3 323 unless $primary
90 1 322 unless ref $primary
94 278 44 if $type eq 'CODE'
97 1 43 unless $type eq 'ARRAY'
103 324 3 unless defined $ENV{'TS_WORKFLOW'}
104 1 2 if $self->{'no_final'}
105 1 1 if $self->{'unit'}->contains($ENV{'TS_WORKFLOW'})
112 1 324 if $self->finished
113 1 323 unless $self->should_run
119 3 320 if ($ctx->debug->skip)
126 2 318 unless ($self->_have_primary)
127 1 1 if $self->{'unit'}->is_root
134 208 110 unless $self->{'no_final'}
136 205 113 if ($self->subtest) { }
143 1 203 unless $self->{'events'}
151 1 27 unless $self->{'events'} or $self->{'no_final'}
154 11 101 if $self->{'failed'} or not $self->{'no_final'}
157 207 109 if $vars
169 31 313 if $self->{'pending'}
171 1 343 if $self->finished
174 341 2 if $self->{'stage'} == 0
175 310 32 if $self->{'stage'} == 1
176 336 2 if $self->{'stage'} == 2
179 3 338 unless ($ok)
194 248 97 unless ($buildups)
195 248 0 if $self->{'stage'} == 0
201 35 42 if ($bunit->wrap) { }
204 3 32 if ($self->{'pending'})
216 65 32 if $self->{'stage'} == 0
225 21 1264 if $e->causes_fail
226 209 109 unless $self->{'no_final'}
230 31 78 if $self->{'unit'}->wrap
235 476 14 unless $e->causes_fail
237 3 11 unless $e->can('diag')
238 0 11 unless $e->diag
249 316 0 if $hub->is_local
251 46 270 if (&reftype($primary) eq 'ARRAY') { }
259 312 0 if $l
266 312 0 if $self->{'stage'} < 2
291 275 65 unless ($teardowns)
299 33 12 if $tunit->wrap