Branch Coverage

blib/lib/Promise/ES6/Backend/PP.pm
Criterion Covered Total %
branch 56 68 82.3


line true false branch
46 0 139 unless $cr
71 2 57 if (UNIVERSAL::can($$value_sr, "then"))
77 0 57 if $self->[7]
81 17 40 if (@children)
87 4 40 unless (defined $_[0])
90 3 1 if (@_) { }
105 0 44 if $self->[7]
111 8 36 if (@children)
117 9 130 unless (eval { do { &$cr($resolver, $rejecter); 1 } })
135 0 13 unless $_[1]
159 46 97 if ('Promise::ES6::_PENDING' eq ref $self->[2]) { }
177 1 5 if (ref $orig_finally_sr) { }
207 0 133 if "Promise::ES6::_PENDING" ne ref $self->[2]
213 57 76 if $settle_is_rejection
215 0 133 if ($Promise::ES6::_EVENT) { }
235 53 86 $settle_is_rejection && !$self_is_finally ? :
243 130 9 if ($callback) { }
253 12 118 $self_is_finally ? :
127 3 if (eval { do { $new_value = &$callback($self_is_finally ? () : $$final_value_sr); 1 } }) { }
261 119 8 unless (UNIVERSAL::can($new_value, "then"))
264 8 111 if ($self_is_finally) { }
275 6 2 if $settle_is_rejection
294 4 8 if (not $self_is_finally or $value_sr_contents_is_promise or $self_is_finally and $callback_failed)
310 4 5 if ($settle_is_rejection)
315 8 131 if ($value_sr_contents_is_promise) { }
2 129 elsif (@{$self->[1];}) { }
320 3 5 if ($self_is_finally)
330 2 129 if $self->[7]
340 0 10 unless $_[0][0] and $$ == $_[0][0]
342 0 0 if ($_[0][3] and ${^GLOBAL_PHASE} and ${^GLOBAL_PHASE} eq "DESTRUCT")
346 10 0 if (defined $_[0][2])
348 0 10 if (my $value_sr = delete $_UNHANDLED_REJECTIONS{$promise_value_sr})
404 8 4 if UNIVERSAL::isa($_[0][2], "Promise::ES6::_RESOLUTION")
407 0 4 if substr($err, -1) eq "\n"