| 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
Condition0%0/3
defined $val and not ref $val
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
| |||||||||||||||||||||||||||||||||
| 16 | 0 | return $self->SUPER::value( [ $val ] ); | |||||||||||||||||||||||||||||||
| 17 | ▶ | } elsif(defined($val) && ref($val)) { | |||||||||||||||||||||||||||||||
|
Condition0%0/3
defined $val and ref $val
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
| |||||||||||||||||||||||||||||||||
| 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__ | ||||||||||||||||||||||||||||||||