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 11 our $VERSION = '0.07'; # VERSION
8  
9 sub new {
10 120 ▶ my $this = shift;
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
11 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
12 120 my $self = {
13 'cmd' => undef,
14 'params' => undef,
15 @_
16 };
17 120 bless($self, $class);
18 120 return($self);
19 }
20  
21 11 1;
22  
23 # vim:ts=2:syntax=perl:
24 # vim600:foldmethod=marker:
« QWorker/Worker.pm ↑ Summary