SRSMessage.pm

filter: Statementstmt 43.4% 10 / 23 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 31.5% 12 / 38 CC 5 SCAR 30.8
CC
5
Cov
31%
__ANON__
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 21.7
« Response/Info.pm ↑ Summary Packets.pm »
1  
2 package SRS::EPP::SRSMessage;
3  
4 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 extends "SRS::EPP::Message";
8  
9 1 has 'parts' =>
10 is => "rw",
11 isa => "ArrayRef[SRS::EPP::Message]",
12 ;
13  
14 1 has "+message" =>
15 isa => "XML::SRS",
16 ;
17  
18 after 'message_trigger' => sub {
19 0 ▶ my $self = shift;
Subroutine __ANON__: not called CC=5 SCAR=34.0
20 0 ▶ return if $self->parts and @{$self->parts};
Branch: 1 branch
BranchTrueFalseTotal
if $self->parts and @{$self->parts;} 0 0 0
Condition0%0/3
$self->parts and @{$self->parts;}
!ll&&!rl&&r
000
MC/DC0%0/2
$self->parts and @{$self->parts;}
$self->parts @{$self->parts;}
Truth table0%0/3
A and B
A= $self->partsB= @{$self->parts;}
ABresult
0X0
100
111
21 0 my $message = $self->message;
22 0 my ($class, $method);
23 0 ▶ if ( $message->isa("XML::SRS::Request") ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($message->isa('XML::SRS::Request')) { } 0 0 0
24 0 $class = "SRS::EPP::SRSRequest";
25 0 $method = "requests";
26 }
27 else {
28 0 $class = "SRS::EPP::SRSResponse";
29 0 $method = "results";
30 }
31 $self->parts( [
32 map {
33 0 $class->new( message => $_ )
34 }
35 0 ▶ @{ $message->$method//[] }
Condition0%0/2
$message->$method // []
l!l
00
MC/DC0%0/1
$message->$method // []
$message->$method
Truth table0%0/2
A
A= $message->$method
Aresult
11
00
36 ] );
37 1 };
38  
39 1 1;
« Response/Info.pm ↑ Summary Packets.pm »