Client/Response/AuthenSuccess.pm

filter: Statementstmt 51.8% 14 / 27 Branchbran 0.0% 0 / 6 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 57.1% 4 / 7 Podpod 0.0% 0 / 4 totaltotal 38.7% 19 / 49 CC 5 SCAR 13.7
CC
5
Cov
42%
user
6.0
pgt
6.0
proxies
6.0
CRAP 3.9
« Client.pm ↑ Summary Client/Response/Failure.pm »
1 package LibCAS::Client::Response::AuthenSuccess;
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::Success";
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(@_);
15 }
16  
17 0 ▶sub user {
Subroutine user: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $self = shift;
19 0 my $user = shift;
20
21 0 ▶ if (defined $user) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $user) 0 0 0
22 0 $self->{user} = $user;
23 }
24
25 0 return $self->{user};
26 }
27  
28 0 ▶sub pgt {
Subroutine pgt: not called CC=2 SCAR=17.9
Pod undocumented
29 0 my $self = shift;
30 0 my $pgt = shift;
31
32 0 ▶ if (defined $pgt) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $pgt) 0 0 0
33 0 $self->{pgt} = $pgt;
34 }
35
36 0 return $self->{pgt};
37 }
38  
39 0 ▶sub proxies {
Subroutine proxies: not called CC=2 SCAR=17.9
Pod undocumented
40 0 my $self = shift;
41
42 0 ▶ return wantarray ? @{$self->{proxies}} : $self->{proxies};
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 0 0 0
43 }
44  
45 4 1;
« Client.pm ↑ Summary Client/Response/Failure.pm »