Pcuke/Executor/Status.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 3 / 3 totaltotal 100% 25 / 25 CC 2 SCAR 2.9
CC
2
Cov
100%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Pcuke/Executor/StepFailure.pm ↑ Summary Pcuke/Manual.pm »
1 package Test::Pcuke::Executor::Status;
2  
3 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Test::Pcuke::Executor::Status - status of the step execution
9  
10 =head1 SYNOPSIS
11  
12 TODO SYNOPSIS
13  
14 use Test::Pcuke::Executor::Status;
15  
16 my $status = Test::Pcuke::Executor::Status->new($status, $exception);
17 ...
18  
19 =head1 METHODS
20  
21 =head2 new
22  
23 =cut
24  
25 6 ▶sub new {
Subroutine new: called CC=2 SCAR=6.9
Pod documented
26 6 my ($class, $status, $exception) = @_;
27
28 6 ▶ $status ||= 'undef';
Condition100%2/2
$status ||= "undef"
l!l
42
MC/DC100%1/1
$status ||= "undef"
$status
Truth table100%2/2
A
A= $status
Aresult
11
00
29
30 6 return bless {
31 _status => $status,
32 _exception => $exception
33 }, $class;
34 }
35  
36 =head2 status
37  
38 Returns the status string passed to the constructor
39  
40 =cut
41  
42 5 ▶sub status {
Subroutine status: called CC=1 SCAR=0.0
Pod documented
43 5 my ($self) = @_;
44 5 return $self->{_status};
45 }
46  
47 =head2 exception
48  
49 Returns the exception passed to the constructor
50  
51 =cut
52  
53 2 ▶sub exception {
Subroutine exception: called CC=1 SCAR=0.0
Pod documented
54 2 my ($self) = @_;
55 2 return $self->{_exception};
56 }
57  
58 5 1; # End of Test::Pcuke::Executor::Status
59 __END__
« Pcuke/Executor/StepFailure.pm ↑ Summary Pcuke/Manual.pm »