QWorker/WorkUnit.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 80.7% 21 / 26 CC 2 SCAR 3.5
CC
2
Cov
89%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« QWorker/Worker.pm ↑ Summary
1 package IPC::QWorker::WorkUnit;
2  
3 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: work unit to process by IPC::QWorker
8 11 our $VERSION = '0.08'; # VERSION
9  
10 120 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
11 120 my $this = shift;
12 120 ▶ my $class = ref($this) || $this;
Condition33%1/3
ref $this || $this
l!l&&r!l&&!r
01200
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table33%1/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
13 120 my $self = {
14 'cmd' => undef,
15 'params' => undef,
16 @_
17 };
18 120 bless($self, $class);
19 120 return($self);
20 }
21  
22 11 1;
23  
24 # vim:ts=2:expandtab:syntax=perl:
25  
26 __END__
« QWorker/Worker.pm ↑ Summary