Gearman.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 87.5% 14 / 16 CC 1 SCAR 0.7
CC
1
Cov
83%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Gearman/Worker.pm ↑ Summary Gearman/Constants.pm »
1 package AnyEvent::Gearman;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 our $VERSION = '0.10';
7  
8 our @EXPORT = qw/gearman_client gearman_worker/;
9  
10 0 ▶use AnyEvent::Gearman::Client;
Subroutine BEGIN: called CC=1 SCAR=2.6
11 use AnyEvent::Gearman::Worker;
12  
13 sub gearman_client {
14 AnyEvent::Gearman::Client->new(
15 job_servers => [@_],
16 );
17 }
18  
19 sub gearman_worker {
20 AnyEvent::Gearman::Worker->new(
21 job_servers => [@_],
22 );
23 }
24  
25 1;
26  
27 __END__
« Gearman/Worker.pm ↑ Summary Gearman/Constants.pm »