Condition Coverage

blib/lib/Venus/Future.pm
Criterion Covered Total %
condition 41 86 47.6


and 3 conditions

line !l l&&!r l&&r condition
70 0 3 0 $is_resolvable and $self->is_fulfilled
0 3 0 $is_rejectable and $self->is_rejected
79 0 0 3 $is_resolvable and $is_rejectable
122 0 27 15 $status && $status eq $FULFILLED
130 0 48 123 $status && $status eq $PENDING
144 0 13 7 $status && $status eq $REJECTED
256 0 0 0 $is_future and $future->is_pending
257 0 0 0 $is_future and $future->is_fulfilled
262 0 0 0 $is_future && $future->is_fulfilled
275 0 0 2 $self->is_thenable($future) && $future->isa('Venus::Future')
277 0 2 0 $is_future and $future->is_pending
280 0 2 0 $is_future and $future->is_pending
314 0 1 0 $is_future and $future->is_pending
315 0 1 0 $is_future and $future->is_rejected
320 0 0 1 $is_future && $future->is_fulfilled
333 0 0 18 $self->is_thenable($future) && $future->isa('Venus::Future')
335 0 14 4 $is_future and $future->is_pending
338 0 15 3 $is_future and $future->is_pending
403 4 19 0 $is_resolvable and $self->is_fulfilled
16 7 0 $is_rejectable and $self->is_rejected
412 4 0 19 $is_resolvable and $self->is_pending
415 16 0 7 $is_rejectable and $self->is_pending
433 0 0 0 $result->isa("Venus::Future") and $result->is_fulfilled
463 1 1 1 $result->isa("Venus::Future") and $result->is_fulfilled
493 0 0 0 $result->isa("Venus::Future") and $result->is_fulfilled

or 2 conditions

line l !l condition
265 1 15 $self->{'on_finally'} || []
267 1 15 $self->{'on_rejected'} || []
323 1 38 $self->{'on_finally'} || []
325 16 23 $self->{'on_fulfilled'} || []

or 3 conditions

line l !l&&r !l&&!r condition
239 2 13 0 $self->{'promise'} ||= $code