| 1 | # -*- perl -*- | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | package XML::EP::Response; | ||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 1 | $XML::EP::Response = '0.01'; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||
| 11 | 0 | my $proto = shift; | |||||||||||||||||||
| 12 | 0 | ▶ | my $self = { @_ == 1 ? %{shift()} : @_ }; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 13 | 0 | ▶ | bless($self, (ref($proto) || $proto)) | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 14 | } | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 0 | ▶ | sub ContentType { | ||||||||||||||||||
|
Subroutine
ContentType: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 17 | 0 | my $self = shift; | |||||||||||||||||||
| 18 | 0 | ▶ | @_ ? ($self->{'content-type'} = shift) : $self->{'content-type'}; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | ▶ | sub Headers { | ||||||||||||||||||
|
Subroutine
Headers: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 22 | 0 | my $self = shift; | |||||||||||||||||||
| 23 | 0 | "content-type: " . $self->ContentType() . "\n\n"; | |||||||||||||||||||
| 24 | } | ||||||||||||||||||||