Branch Coverage

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


line true false branch
49 1 316 unless $self->{'unit'}
58 1 673 if $self->{'exception'}
59 3 670 if $self->{'stage'} >= 3
66 108 205 if $self->{'no_final'}
67 1 204 if $self->{'no_subtest'}
89 3 324 unless $primary
90 1 323 unless ref $primary
94 279 44 if $type eq 'CODE'
97 1 43 unless $type eq 'ARRAY'
103 325 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 325 if $self->finished
113 1 324 unless $self->should_run
119 3 321 if ($ctx->debug->skip)
126 2 319 unless ($self->_have_primary)
127 1 1 if $self->{'unit'}->is_root
134 209 110 unless $self->{'no_final'}
136 206 113 if ($self->subtest) { }
143 1 204 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 208 109 if $vars
169 31 314 if $self->{'pending'}
171 1 344 if $self->finished
174 342 2 if $self->{'stage'} == 0
175 311 32 if $self->{'stage'} == 1
176 337 2 if $self->{'stage'} == 2
179 3 339 unless ($ok)
194 249 97 unless ($buildups)
195 249 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 1273 if $e->causes_fail
226 210 109 unless $self->{'no_final'}
230 31 78 if $self->{'unit'}->wrap
235 477 14 unless $e->causes_fail
237 3 11 unless $e->can('diag')
238 0 11 unless $e->diag
249 317 0 if $hub->is_local
251 46 271 if (&reftype($primary) eq 'ARRAY') { }
259 313 0 if $l
266 313 0 if $self->{'stage'} < 2
291 276 65 unless ($teardowns)
299 33 12 if $tunit->wrap