line |
true |
false |
branch |
238
|
1 |
50 |
if (keys %opts) |
242
|
2 |
48 |
if ((ref $batch_load_func || '') ne 'CODE') |
247
|
2 |
46 |
if (defined $cache_key_func and (ref $cache_key_func || '') ne 'CODE') |
250
|
2 |
44 |
if (not ref $cache_map or ref $cache_map ne 'HASH') |
253
|
4 |
40 |
if (defined $max_batch_size) |
254
|
1 |
3 |
unless $max_batch_size =~ /^\d+$/u |
255
|
1 |
2 |
unless $max_batch_size > 0 |
278
|
1 |
130 |
unless @_ >= 2 |
279
|
1 |
129 |
unless defined $key |
280
|
1 |
128 |
unless @_ == 2 |
285
|
27 |
101 |
if ($self->{'do_cache'} and my $promise = $self->{'promise_cache'}{$cache_key}) |
299
|
62 |
39 |
if (@{$self->{'queue'};} == 1) |
300
|
59 |
3 |
if ($self->{'do_batch'}) { } |
308
|
59 |
0 |
if ('Mojo::IOLoop'->singleton->reactor->isa('Mojo::Reactor::EV')) { } |
328
|
79 |
22 |
if ($self->{'do_cache'}) |
399
|
1 |
7 |
_is_error_object($value) ? : |
449
|
3 |
30 |
if (not @promises) { } |
460
|
1 |
77 |
if @_ > 1 |
462
|
29 |
49 |
if --$remaining <= 0 |
488
|
1 |
61 |
if ($max_batch_size and @queue > $max_batch_size) { } |
507
|
1 |
62 |
if ($@) { } |
|
3 |
59 |
elsif (not $batch_promise && &blessed($batch_promise) && $batch_promise->can('then')) { } |
519
|
1 |
56 |
if (@values != @keys) |
530
|
5 |
88 |
if (_is_error_object($value)) { } |
563
|
147 |
9 |
unless defined $self->{'cache_key_func'} |