Client/Response/Failure.pm

filter: Statementstmt 58.3% 14 / 24 Branchbran 0.0% 0 / 4 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 3 totaltotal 45.2% 19 / 42 CC 4 SCAR 12.5
CC
4
Cov
48%
code
6.0
message
6.0
new
2.1
CRAP 3.5
« Client/Response/AuthenSuccess.pm ↑ Summary Client/Response/ProxySuccess.pm »
1 package LibCAS::Client::Response::Failure;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use base "LibCAS::Client::Response";
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 our $VERSION = '0.01';
9  
10 1 ▶sub new {
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
11 1 my $this = shift;
12 1 ▶ my $class = ref($this) || $this;
Condition33%1/3
ref $this || $this
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $this || $this
ref $this $this
Truth table33%1/3
A || B
A= ref $thisB= $this
ABresult
1X1
011
000
13
14 1 return $class->SUPER::new(@_, message => '', ok => 0);
15 }
16  
17 0 ▶sub code {
Subroutine code: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $self = shift;
19 0 my $code = shift;
20
21 0 ▶ if (defined $code) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $code) 0 0 0
22 0 $self->{code} = $code;
23 }
24
25 0 return $self->{code};
26 }
27  
28 0 ▶sub message {
Subroutine message: not called CC=2 SCAR=17.9
Pod undocumented
29 0 my $self = shift;
30 0 my $message = shift;
31
32 0 ▶ if (defined $message) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $message) 0 0 0
33 0 $self->{message} = $message;
34 }
35
36 0 return $self->{message};
37 }
38  
39 4 1;
« Client/Response/AuthenSuccess.pm ↑ Summary Client/Response/ProxySuccess.pm »