Condition Coverage

lib/Beekeeper/Service/Supervisor/Worker.pm
Criterion Covered Total %
condition 0 63 0.0


and 3 conditions

line !l l&&!r l&&r condition
147 0 0 0 defined $_ and !$host || $_->{'host'} eq $host
0 0 0 defined $_ and !$host || $_->{'host'} eq $host and !$pool || $_->{'pool'} eq $pool
200 0 0 0 abs($mem_size - $old_msize) / $old_msize < 0.05 and abs($cpu_load - $old_load) / $old_load < 0.05
313 0 0 0 $args->{'host'} and $args->{'host'} ne $self->{'host'}
314 0 0 0 $args->{'pool'} and $args->{'pool'} ne $self->{'pool'}
361 0 0 0 $args->{'host'} and $args->{'host'} ne $self->{'host'}
362 0 0 0 $args->{'pool'} and $args->{'pool'} ne $self->{'pool'}

or 2 conditions

line l !l condition
96 0 0 $args{'pool'} || die()
97 0 0 $args{'host'} || die()
98 0 0 $args{'pid'} || die()
102 0 0 $self->{'Workers'}->get($worker_id) || {}
116 0 0 $args{'pool'} || die()
117 0 0 $args{'host'} || die()
118 0 0 $args{'pid'} || die()
128 0 0 $args{'pool'} || die()
129 0 0 $args{'host'} || die()
130 0 0 $args{'pid'} || die()
194 0 0 $self->{'Load'}{$pid} || 0
197 0 0 $worker->{'msize'} || 0.01
198 0 0 $worker->{'cpu'} || 0.01
288 0 0 $worker->{'cpu'} || 0
289 0 0 $worker->{'mem'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
19 0 0 0 $req->{'method'} eq '_bkpr.supervisor.worker_status' or $req->{'method'} eq '_bkpr.supervisor.worker_exit'
147 0 0 0 not $class or $_->{'class'} eq $class
0 0 0 !$host || $_->{'host'} eq $host
0 0 0 !$pool || $_->{'pool'} eq $pool