Branch Coverage

blib/lib/Evo/Promise/Role.pm
Criterion Covered Total %
branch 74 112 66.0


line true false branch
27 0 1 unless @_ <= 2
0 1 unless @_ >= 2
33 0 1 unless @_ <= 1
0 1 unless @_ >= 1
35 0 9 unless @_ <= 2
0 9 unless @_ >= 2
41 0 10 unless @_ <= 2
0 10 unless @_ >= 2
47 0 7 unless @_ >= 1
52 0 17 if (ref $cur eq 'Evo::Promise::Class') { }
67 0 6 unless @_ >= 1
69 1 5 unless (@prms)
79 2 12 if --$pending == 0
81 0 20 if (ref $cur_p eq 'Evo::Promise::Class') { }
96 0 8 unless @_ <= 2
0 8 unless @_ >= 2
99 0 4 unless @_ <= 1
0 4 unless @_ >= 1
103 0 4 unless @_ <= 1
0 4 unless @_ >= 1
110 0 8 unless @_ <= 2
0 8 unless @_ >= 2
114 0 2 unless @_ <= 2
0 2 unless @_ >= 2
115 0 2 unless @_ <= 1
0 2 unless @_ >= 1
121 72 10 ref $fh ? :
63 19 ref $rh ? :
123 19 63 if $self->d_settled
129 0 36 unless @_ <= 2
0 36 unless @_ >= 2
136 0 154 unless @_ <= 2
0 154 unless @_ >= 2
142 0 65 unless @_ <= 2
0 65 unless @_ >= 2
151 0 159 unless @_ <= 2
0 159 unless @_ >= 2
158 106 57 unless &blessed($x)
162 1 56 if $x and $self eq $x
165 45 11 if (ref $x eq ref $self)
166 4 7 $x->state eq 'FULFILLED' ? :
11 34 $x->d_settled ? :
174 10 1 if ($x->can('then'))
176 6 4 unless $sync->should_resolve
187 0 31 unless @_ <= 2
0 31 unless @_ >= 2
192 0 150 unless @_ <= 2
0 150 unless @_ >= 2
194 37 113 unless $self->d_settled
199 0 169 unless @_ <= 1
0 169 unless @_ >= 1
207 95 118 unless my(@children) = @{$parent->d_children}
213 76 46 $pstate eq 'FULFILLED' ? :
216 78 44 if ($h)
219 71 6 eval { do { $x = &$h($v); 1 } } ? :
225 29 15 $pstate eq 'FULFILLED' ? :