Condition Coverage

lib/Beekeeper/Worker.pm
Criterion Covered Total %
condition 0 73 0.0


and 3 conditions

line !l l&&!r l&&r condition
113 0 0 0 defined $SIG{'TERM'} and $SIG{'TERM'} eq "DEFAULT"
118 0 0 0 defined $SIG{'INT'} and $SIG{'INT'} eq "DEFAULT"
0 0 0 defined $SIG{'INT'} and $SIG{'INT'} eq "DEFAULT" and $args{'foreground'}
167 0 0 0 $auth_data and $auth_level
312 0 0 0 not ref $callback and $self->can($callback)
430 0 0 0 ref $request eq "HASH" and $request->{'jsonrpc'} eq "2.0"
440 0 0 0 defined $method and $method =~ /^([\.\w-]+)\.([\w-]+)$/
485 0 0 0 ref $request eq "HASH" and $request->{'jsonrpc'} eq "2.0"
496 0 0 0 defined $method and $method =~ /^([\.\w-]+)\.([\w-]+)$/
522 0 0 0 &blessed($result) and $result->isa("Beekeeper::JSONRPC::Error")
524 0 0 0 &blessed($@) and $@->isa("Beekeeper::JSONRPC::Error")
557 0 0 0 defined $request_id and defined $response
573 0 0 0 $request->{'_deflate_response'} and length $json > $request->{'_deflate_response'}
654 0 0 0 &blessed($result) and $result->isa("Beekeeper::JSONRPC::Error")
681 0 0 0 $request->{'_deflate_response'} and length $json > $request->{'_deflate_response'}
826 0 0 0 $worker->{'in_progress'} > 0 and --$wait_time > 0

or 2 conditions

line l !l condition
215 0 0 $_[0] || ''
452 0 0 $self->authorize_request($request) || ''
508 0 0 $self->authorize_request($request) || ''
751 0 0 $worker->{'postponed'} ||= []
846 0 0 $worker->{'postponed'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
178 0 0 0 $self->{'_WORKER'}{'debug'} or $self->{'_WORKER'}{'config'}{'debug'}
446 0 0 0 $worker->{'callbacks'}{"msg.$1.$2"} || $worker->{'callbacks'}{"msg.$1.*"}
502 0 0 0 $worker->{'callbacks'}{"req.$1.$2"} || $worker->{'callbacks'}{"req.$1.*"}
618 0 0 0 @{$worker->{'task_queue_high'};} or @{$worker->{'task_queue_low'};}
930 0 0 0 $worker->{'last_report'} || $now - 1