blib/lib/OpenFrame/Cookie.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 47.5% 19 / 40 CC 5 SCAR 28.4
CC
5
Cov
47%
value
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 17.1
« lib/OpenFrame/Segment/HTTP/Request.pm ↑ Summary blib/lib/OpenFrame/Segment/ContentLoader.pm »
1 package OpenFrame::Cookie;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use CGI::Cookie;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use base qw ( CGI::Cookie );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION=3.05;
10  
11 0 ▶sub value {
Subroutine value: not called CC=5 SCAR=34.0
Pod documented
12 0 my $self = shift;
13 0 my $val = shift;
14  
15 0 ▶ if (defined($val) && !ref($val)) {
Branch: 2 branches
BranchTrueFalseTotal
if (defined $val and not ref $val) { } 0 0 0
elsif (defined $val and ref $val) { } 0 0 0
Condition0%0/3
defined $val and not ref $val
!ll&&!rl&&r
000
MC/DC0%0/2
defined $val and not ref $val
defined $val not ref $val
Truth table0%0/3
A and not(B)
A= defined $valB= not ref $val
ABresult
0X0
100
111
16 0 return $self->SUPER::value( [ $val ] );
17 ▶ } elsif(defined($val) && ref($val)) {
Condition0%0/3
defined $val and ref $val
!ll&&!rl&&r
000
MC/DC0%0/2
defined $val and ref $val
defined $val ref $val
Truth table0%0/3
A and B
A= defined $valB= ref $val
ABresult
0X0
100
111
18 0 return $self->SUPER::value( $val, @_ );
19 } else {
20 0 return $self->SUPER::value( $val, @_ );
21 }
22 }
23  
24 3 1;
25  
26 __END__
« lib/OpenFrame/Segment/HTTP/Request.pm ↑ Summary blib/lib/OpenFrame/Segment/ContentLoader.pm »