Client/Response/ProxySuccess.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 56.2% 18 / 32 CC 3 SCAR 10.1
CC
3
Cov
61%
proxy_ticket
6.0
new
2.1
BEGIN
1.0
CRAP 2.8
« Client/Response/Failure.pm ↑ Summary Client/Response/Error.pm »
1 package LibCAS::Client::Response::ProxySuccess;
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 proxy_ticket {
Subroutine proxy_ticket: not called CC=2 SCAR=17.9
Pod undocumented
18 0 my $self = shift;
19 0 my $ticket = shift;
20
21 0 ▶ if (defined $ticket) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $ticket) 0 0 0
22 0 $self->{proxy_ticket} = $ticket;
23 }
24
25 0 return $self->{proxy_ticket};
26 }
« Client/Response/Failure.pm ↑ Summary Client/Response/Error.pm »