Branch Coverage

blib/lib/Devel/MAT/Tool/Future.pm
Criterion Covered Total %
branch 55 78 70.5


line true false branch
39 2 0 if eval { do { $pmat->find_symbol("%Future::") } }
58 150 151350 if $count % 1000 == 0
61 150861 639 unless $sv->type eq "STASH"
70 150 151350 if $count % 1000 == 0
73 150879 621 unless my $pkg = $sv->blessed
75 9 612 if $classes{$pkg->stashname}
89 0 4 unless $sv->is_future
102 0 1 unless @result
103 1 0 if @result
104 1 0 if @result > 1
111 1 3 if ($(Syntax::Keyword::Match/topic) eq 'done') { }
1 2 elsif ($(Syntax::Keyword::Match/topic) eq 'failed') { }
114 0 1 unless @failure
115 1 0 if (@failure)
116 1 0 defined $failure[0]->pv ? :
119 0 1 if @failure > 1
165 270 642 unless ref $pkg
175 0 637 if $pkg->stashname eq "Future"
177 376 261 unless my $isagv = $pkg->value("ISA")
178 0 261 unless my $isaav = $isagv->array
181 1 268 if $self->class_is_future($superclass->pv)
222 0 24 unless $sv->is_future
225 6 18 if ($tmp = $sv->value('cancelled') and $tmp->uv) { }
6 12 elsif ($tmp = $sv->value('failure')) { }
6 6 elsif ($tmp = $sv->value('ready') and $tmp->uv) { }
251 0 2 unless $sv->is_future
268 0 2 unless $sv->is_future
278 0 0 unless $self->is_future($sv)
352 303076 16 unless $sv->is_future
356 12 4 if %only and not $only{$state}
366 0 1 unless @result
367 1 0 if @result
368 1 0 if @result > 1
370 1 3 if ($(Syntax::Keyword::Match/topic) eq 'done') { }
1 2 elsif ($(Syntax::Keyword::Match/topic) eq 'failed') { }
372 0 1 unless @failure
373 1 0 if (@failure)
374 1 0 defined $failure[0]->pv ? :
377 0 1 if @failure > 1