| 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
| |||||||||||||
| 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>'
MC/DC100%1/1
$self->message || '<no message>'
$self->message
Truth table100%2/2
A
A= $self->message
| |||||||||||||
| 24 | } | ||||||||||||
| 25 | |||||||||||||
| 26 | 38 | 1; | |||||||||||
| 27 | |||||||||||||
| 28 | __END__ | ||||||||||||