Condition Coverage

lib/Redis/JobQueue.pm
Criterion Covered Total %
condition 0 149 0.0


and 3 conditions

line !l l&&!r l&&r condition
765 0 0 0 exists $self->_redis->{'no_auto_connect_on_new'} and $self->_redis->{'no_auto_connect_on_new'}
0 0 0 exists $self->_redis->{'no_auto_connect_on_new'} and $self->_redis->{'no_auto_connect_on_new'} and not $self->_redis->{'sock'}
779 0 0 0 $major == 2 and $minor < 8
846 0 0 0 scalar @_ == 2 and not defined $timeout || defined $old_timeout
876 0 0 0 scalar @_ == 2 and not defined $timeout || defined $old_timeout
1162 0 0 0 $field ne 'elapsed' and $field =~ /^(workload|result)$/ || !$job_fnames{$field}
1483 0 0 0 $field ne 'expire' and $field ne 'id'
1594 0 0 0 exists $args{$field} and ref $args{$field} ne 'ARRAY'
1680 0 0 0 $] >= 5.14 and ${^GLOBAL_PHASE} eq 'DESTRUCT'
1806 0 0 0 not $self->_transaction and $self->reconnect_on_error
1819 0 0 0 not $self->_transaction and $self->reconnect_on_error
1861 0 0 0 $self and $method =~ /^EVAL/i
1869 0 0 0 $method eq 'HSET' and $_[1] eq $_ID_IN_QUEUE_FIELD
0 0 0 $method eq 'HSET' and $_[1] =~ /^(workload|result)$/ || !$job_fnames{$_[1]}
0 0 0 $method eq 'HSET' and utf8::is_utf8($_[2])
1940 0 0 0 $try_again and $method eq 'EVALSHA'
1959 0 0 0 $method eq 'HGET' and $_[1] =~ /^(workload|result)$/
1999 0 0 0 not $self->_transaction and $self->reconnect_on_error
0 0 0 not $self->_transaction and $self->reconnect_on_error and not $self->ping
2012 0 0 0 $err != 1 and $err != 2
0 0 0 $err != 1 and $err != 2 and $err != 4
0 0 0 $err != 1 and $err != 2 and $err != 4 and $err != 5

or 2 conditions

line l !l condition
1071 0 0 $job->$_ // ''
1073 0 0 $job->meta_data($_) // ''
1087 0 0 $self->_call_redis('EXEC') // (return)
1484 0 0 $job->meta_data($field) // ''
1487 0 0 $job->$field // ''
1495 0 0 $self->_call_redis('EXEC') // (return)
1658 0 0 $ret // ''
1956 0 0 $result[0] // (return)
1977 0 0 $self->operation_timeout || 1
2008 0 0 shift() // 0

or 3 conditions

line l !l&&r !l&&!r condition
779 0 0 0 $major < 2 or $major == 2 and $minor < 8
846 0 0 0 defined $timeout || defined $old_timeout
876 0 0 0 defined $timeout || defined $old_timeout
1051 0 0 0 ref $_[0] eq 'HASH' or &_INSTANCE($_[0], 'Redis::JobQueue::Job')
1162 0 0 0 $field =~ /^(workload|result)$/ || !$job_fnames{$field}
1179 0 0 0 $result_data{'completed'} || $result_data{'failed'} || time
1191 0 0 0 $data[&firstidx(sub { $_ eq 'completed'; } , @all_fields)] || $data[&firstidx(sub { $_ eq 'failed'; } , @all_fields)] || $tm
1343 0 0 0 $queues // ()
1420 0 0 0 not $expire_time or time < $expire_time
1528 0 0 0 defined &_STRING($id_source) or &_INSTANCE($id_source, 'Redis::JobQueue::Job')
1740 0 0 0 defined &_STRING($maybe_queue) or &_INSTANCE($maybe_queue, 'Redis::JobQueue::Job')
1776 0 0 0 defined &_STRING($maybe_queue) or &_INSTANCE($maybe_queue, 'Redis::JobQueue::Job')
1797 0 0 0 $error =~ /Could not connect to Redis server at / or $error =~ /^Can't close socket: /
0 0 0 $error =~ /Could not connect to Redis server at / or $error =~ /^Can't close socket: / or $error =~ /^Not connected to any server/
0 0 0 $error =~ /Could not connect to Redis server at / or $error =~ /^Can't close socket: / or $error =~ /^Not connected to any server/ or $error =~ /^Error while reading from Redis server: /
0 0 0 $error =~ /Could not connect to Redis server at / or $error =~ /^Can't close socket: / or $error =~ /^Not connected to any server/ or $error =~ /^Error while reading from Redis server: / or $error =~ /^Redis server closed connection/
0 0 0 $error =~ /[\S+] ERR command not allowed when used memory > 'maxmemory'/ or $error =~ /[\S+] OOM command not allowed when used memory > 'maxmemory'/
1869 0 0 0 $_[1] =~ /^(workload|result)$/ || !$job_fnames{$_[1]}
1982 0 0 0 $used_memory < $maxmemory or $sleepped > $max_timeout
2012 0 0 0 not $err or $err != 1 and $err != 2 and $err != 4 and $err != 5
2056 0 0 0 defined &_STRING($id_source) or &_INSTANCE($id_source, 'Redis::JobQueue::Job')