blib/lib/OpenFrame/Request.pm

filter: Statementstmt 73.5% 25 / 34 Branchbran 37.5% 3 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 3 / 3 totaltotal 71.1% 37 / 52 CC 5 SCAR 10.1
CC
5
Cov
67%
cookies
6.0
uri
3.3
arguments
2.1
CRAP 2.7
« blib/lib/OpenFrame.pm ↑ Summary lib/OpenFrame/Segment/HTTP/Response.pm »
1 package OpenFrame::Request;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use OpenFrame::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use base qw ( OpenFrame::Object );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION=3.05;
10  
11 1 ▶sub uri {
Subroutine uri: called CC=3 SCAR=12.0
Pod documented
12 1 my $self = shift;
13  
14 1 ▶ if (!ref($self)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 1 1
15 0 $self->error("uri called as a class method");
16 }
17  
18 1 my $uri = shift;
19 1 ▶ if (defined( $uri )) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $uri) { } 1 0 1
20 1 $self->{ uri } = $uri;
21 1 return $self;
22 } else {
23 0 return $self->{ uri };
24 }
25 }
26  
27 1 ▶sub arguments {
Subroutine arguments: called CC=2 SCAR=7.2
Pod documented
28 1 my $self = shift;
29 1 my $args = shift;
30 1 ▶ if (defined( $args )) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $args) { } 1 0 1
31 1 $self->{ args } = $args;
32 1 return $self;
33 } else {
34 0 return $self->{ args };
35 }
36 }
37  
38 0 ▶sub cookies {
Subroutine cookies: not called CC=2 SCAR=17.9
Pod documented
39 0 my $self = shift;
40 0 my $ctin = shift;
41 0 ▶ if (defined( $ctin )) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $ctin) { } 0 0 0
42 0 $self->{ ctin } = $ctin;
43 0 return $ctin;
44 } else {
45 0 return $self->{ ctin };
46 }
47 }
48  
49 2 1;
50  
51 __END__
« blib/lib/OpenFrame.pm ↑ Summary lib/OpenFrame/Segment/HTTP/Response.pm »