Workflow/Condition/Result.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 2 / 2 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 100% 34 / 34 CC 3 SCAR 4.1
CC
3
Cov
100%
new
2.0
to_string
2.0
BEGIN
1.0
CRAP 1.5
« Workflow/Condition/HasUser.pm ↑ Summary Workflow/Context.pm »
1 package Workflow::Condition::Result;
2  
3 38 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 38 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 38 ▶use parent qw( Class::Accessor );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 38 ▶use overload '""' => 'to_string';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 38 __PACKAGE__->mk_accessors('message');
11  
12 38 $Workflow::Condition::Result = '2.12';
13  
14 107 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
15 107 my ( $class, @params ) = @_;
16 107 my $self = bless { }, $class;
17 107 ▶ $self->message( shift @params ) if (@params);
Branch: 1 branch
BranchTrueFalseTotal
if @params 6 101 107
18 107 return $self;
19 }
20  
21 110 ▶sub to_string {
Subroutine to_string: called CC=2 SCAR=6.9
Pod documented
22 110 my $self = shift;
23 110 ▶ return $self->message() || '<no message>';
Condition100%2/2
$self->message || '<no message>'
l!l
6104
MC/DC100%1/1
$self->message || '<no message>'
$self->message
Truth table100%2/2
A
A= $self->message
Aresult
11
00
24 }
25  
26 38 1;
27  
28 __END__
« Workflow/Condition/HasUser.pm ↑ Summary Workflow/Context.pm »