blib/lib/cPanel/TaskQueue.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 40 | 52.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
174 | 1 | 1 | 65 | defined $command and length $command |
198 | 1 | 1 | 3 | defined $command and length $command |
282 | 0 | 0 | 8 | exists $$args_ref{$arg_name} and $$self{$internal_name} ne $$args_ref{$arg_name} |
328 | 1 | 1 | 7 | defined $magic and $magic eq $FILETYPE |
329 | 0 | 2 | 5 | defined $version and $version eq $CACHE_VERSION |
340 | 0 | 5 | 0 | exists $$meta{'paused'} and $$meta{'paused'} |
504 | 4 | 0 | 2 | scalar @{$$self{'processing_list'};} < $$self{'max_in_process'} && 0 != @{$$self{'queue_waiting'};} |
line | l | !l | condition |
---|---|---|---|
166 | 1 | 2 | $_[0]{'paused'} || 0 |
255 | 4 | 0 | $@ || 'Unreocognized exception.' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
216 | 0 | 0 | 0 | $$args_ref{'state_dir'} ||= $$args_ref{'cache_dir'} |
225 | 0 | 30 | 0 | $serializer ||= _get_serializer() |
725 | 0 | 22 | 0 | $processor->get_timeout || $$self{'default_task_timeout'} |
765 | 22 | 0 | 0 | $processor ||= _get_task_processor($task) |
774 | 0 | 0 | 0 | $processor ||= _get_task_processor($task) |