| 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
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table0%0/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 11 | 0 | ▶ | croak "new() should not be called as a function" if !$self; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 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
MC/DC100%2/2
ref $self || $self
ref $self
$self
Truth table100%3/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 18 | 3 | ▶ | croak "pre_process() should not be called as a function" if !$self; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 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
MC/DC100%2/2
ref $self || $self
ref $self
$self
Truth table100%3/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 25 | 3 | ▶ | croak "process() should not be called as a function" if !$self; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 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
MC/DC100%2/2
ref $self || $self
ref $self
$self
Truth table100%3/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 32 | 3 | ▶ | croak "post_process() should not be called as a function" if !$self; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 33 | 2 | croak "Class '$self' does not override post_process()"; | |||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 18 | 1; | |||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||