RuleEngine/Output.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran 75.0% 6 / 8 Conditioncond 75.0% 9 / 12 MC/DCmcdc 75.0% 6 / 8 Subroutinesub 85.7% 6 / 7 Podpod 100% 4 / 4 totaltotal 81.5% 53 / 65 CC 9 SCAR 14.8
CC
9
Cov
80%
new
12.0
pre_process
3.0
process
3.0
CRAP 4.4
« RuleEngine/Rule/InputOverThreshold.pm ↑ Summary RuleEngine/Data.pm »
1 package VS::RuleEngine::Output;
2  
3 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 18 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod documented
9 0 my $self = shift;
10 0 ▶ $self = ref $self || $self;
Condition0%0/3
ref $self || $self
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
11 0 ▶ croak "new() should not be called as a function" if !$self;
Branch: 1 branch
BranchTrueFalseTotal
unless $self 0 0 0
12 0 croak "Class '$self' does not override new()";
13 }
14  
15 3 ▶sub pre_process {
Subroutine pre_process: called CC=3 SCAR=11.0
Pod documented
16 3 my $self = shift;
17 3 ▶ $self = ref $self || $self;
Condition100%3/3
ref $self || $self
l!l&&r!l&&!r
111
MC/DC100%2/2
ref $self || $self
ref $self $self
Truth table100%3/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
18 3 ▶ croak "pre_process() should not be called as a function" if !$self;
Branch: 1 branch
BranchTrueFalseTotal
unless $self 1 2 3
19 2 croak "Class '$self' does not override pre_process()";
20 }
21  
22 3 ▶sub process {
Subroutine process: called CC=3 SCAR=11.0
Pod documented
23 3 my $self = shift;
24 3 ▶ $self = ref $self || $self;
Condition100%3/3
ref $self || $self
l!l&&r!l&&!r
111
MC/DC100%2/2
ref $self || $self
ref $self $self
Truth table100%3/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
25 3 ▶ croak "process() should not be called as a function" if !$self;
Branch: 1 branch
BranchTrueFalseTotal
unless $self 1 2 3
26 2 croak "Class '$self' does not override process()";
27 }
28  
29 3 ▶sub post_process {
Subroutine post_process: called CC=3 SCAR=11.0
Pod documented
30 3 my $self = shift;
31 3 ▶ $self = ref $self || $self;
Condition100%3/3
ref $self || $self
l!l&&r!l&&!r
111
MC/DC100%2/2
ref $self || $self
ref $self $self
Truth table100%3/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
32 3 ▶ croak "post_process() should not be called as a function" if !$self;
Branch: 1 branch
BranchTrueFalseTotal
unless $self 1 2 3
33 2 croak "Class '$self' does not override post_process()";
34 }
35  
36 18 1;
37 __END__
« RuleEngine/Rule/InputOverThreshold.pm ↑ Summary RuleEngine/Data.pm »