Branch Coverage

blib/lib/Cache/Memcached/Turnstile.pm
Criterion Covered Total %
branch 0 56 0.0


line true false branch
35 0 0 unless (ref $args{'wait'})
52 0 0 if $expiration > 2592000
56 0 0 if ($val_array) { }
57 0 0 if ($$val_array[1] > time)
60 0 0 if (@$val_array >= 3) { }
75 0 0 if ($$val_array[0]) { }
85 0 0 if (not defined $cas_val) { }
0 0 elsif ($$cas_val[1][0]) { }
97 0 0 if ($memd->cas($args{'key'}, @$cas_val, POSIX::ceil($args{'compute_time'}))) { }
150 0 0 if (not $memd->add($$args{'key'}, $placeholder, POSIX::ceil($$args{'compute_time'}))) { }
188 0 0 unless (ref $args{'keys'} eq 'ARRAY')
193 0 0 unless (ref $args{'wait'})
208 0 0 if ($$_[1] > 2592000)
218 0 0 if $expiration > 2592000
237 0 0 unless ($val_array)
242 0 0 if ($$val_array[1] > time)
244 0 0 if (@$val_array >= 3) { }
261 0 0 if ($$val_array[0]) { }
286 0 0 if (@keys_to_cas_update)
291 0 0 if (not defined $cas_val) { }
0 0 elsif (@{$$cas_val[1];} >= 3 and $$cas_val[1][1] > time) { }
0 0 elsif ($$cas_val[1][0]) { }
312 0 0 if (keys %$cas_val_hash)
325 0 0 if ($statuses[$i]) { }
347 0 0 if (@keys_to_attempt)
360 0 0 if ($statuses[$i]) { }
381 0 0 if (@keys_to_compute)
413 0 0 if (@keys_to_wait_for)