EP/Response.pm

filter: Statementstmt 33.3% 4 / 12 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 25.0% 1 / 4 Podpod 0.0% 0 / 3 totaltotal 17.8% 5 / 28 CC 4 SCAR 19.9
CC
4
Cov
21%
new
12.0
ContentType
6.0
Headers
2.0
CRAP 7.3
« EP/Formatter/HTML.pm ↑ Summary EP/Error.pm »
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
BranchTrueFalseTotal
@_ == 1 ? : 0 0 0
13 0 ▶ bless($self, (ref($proto) || $proto))
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
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
BranchTrueFalseTotal
@_ ? : 0 0 0
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 }
« EP/Formatter/HTML.pm ↑ Summary EP/Error.pm »