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
217 734 71 72 &blessed($results[0]) && $results[0]->can('then')
219 34 0 4 $thenable and $status eq "resolve"
34 0 4 $thenable and $status eq "resolve" and $results[0]->isa("Mojo::Promise")
223 805 1 67 $thenable and $status eq "resolve"
237 0 0 0 &blessed($results[0]) and $results[0]->can("then")
255 3 2 1 $method eq "reject" and not @results

or 2 conditions

line l !l condition
9 0 64 $ENV{'MOJO_PROMISE_DEBUG'} || 0
20 0 0 $self->{'results'} // []
51 368 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 427 364 7 $self->{'handled'} or ($self->{'status'} // "") ne "reject"
791 0 7 $self->{'handled'} or ($self->{'status'} // "") ne "reject" or not $self->{'results'}
69 2 0 2 not $options->{'concurrency'} or @items <= $options->{'concurrency'}
209 6 11 40 $before or $handled