ProcessPool/Worker.pm

filter: Statementstmt 0.0% 0 / 5 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 9 SCAR 17.9
CC
2
Cov
0%
run
6.0
CRAP 6.0
« ProcessPool.pm ↑ Summary scratch.pl »
1 package AnyEvent::ProcessPool::Worker;
2 # ABSTRACT: The task executor code run in the worker process
3 $AnyEvent::ProcessPool::Worker::VERSION = '0.06';
4 use strict;
5 use warnings;
6 use v5.10;
7 require AnyEvent::ProcessPool::Task;
8  
9 sub run {
10 0 ▶ local $| = 1;
Subroutine run: not called CC=2 SCAR=17.9
Pod undocumented
11 0 ▶ while (defined(my $line = <STDIN>)) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $line = readline STDIN)) 0 0 0
12 0 my $task = AnyEvent::ProcessPool::Task->decode($line);
13 0 $task->execute;
14 0 say $task->encode;
15 }
16 }
17  
18 1;
19  
20 __END__
« ProcessPool.pm ↑ Summary scratch.pl »