Condition Coverage

blib/lib/Mojo/Promise.pm
Criterion Covered Total %
condition 26 42 61.9


and 3 conditions

line !l l&&!r l&&r condition
216 720 71 72 &blessed($results[0]) && $results[0]->can('then')
218 30 0 4 $thenable and $status eq "resolve"
30 0 4 $thenable and $status eq "resolve" and $results[0]->isa("Mojo::Promise")
222 791 1 67 $thenable and $status eq "resolve"
236 0 0 0 &blessed($results[0]) and $results[0]->can("then")
254 3 2 1 $method eq "reject" and not @results

or 2 conditions

line l !l condition
9 0 63 $ENV{'MOJO_PROMISE_DEBUG'} || 0
20 0 0 $self->{'results'} // []
51 362 3 $self->{'status'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
22 0 0 0 ref $results[0] or $results[0] =~ /\n/u
31 0 0 0 !$self->{'results'} || @{$self->{'resolve'};} || @{$self->{'reject'};}
51 419 358 7 $self->{'handled'} or ($self->{'status'} // "") ne "reject"
777 0 7 $self->{'handled'} or ($self->{'status'} // "") ne "reject" or not $self->{'results'}
69 2 0 2 not $options->{'concurrency'} or @items <= $options->{'concurrency'}
208 6 11 40 $before or $handled