| 1 | package CGI::Lazy::CookieMonster; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use CGI::Lazy::Globals; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | #----------------------------------------------------------------------------------------------------------- | ||||||||||
| 8 | 0 | ▶ | sub getCookie { | ||||||||
|
Subroutine
getCookie: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 9 | 0 | my $self = shift; | |||||||||
| 10 | 0 | my $cookie = shift; | |||||||||
| 11 | |||||||||||
| 12 | 0 | return $self->q->cookie($cookie); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | #----------------------------------------------------------------------------------------------------------- | ||||||||||
| 16 | 0 | ▶ | sub goodEnoughForMe { | ||||||||
|
Subroutine
goodEnoughForMe: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 17 | 0 | my $self = shift; | |||||||||
| 18 | 0 | my $cookie = shift; | |||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | return $cookie ? TRUE : FALSE; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | #----------------------------------------------------------------------------------------------------------- | ||||||||||
| 24 | 0 | ▶ | sub q { | ||||||||
|
Subroutine
q: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 25 | 0 | my $self = shift; | |||||||||
| 26 | |||||||||||
| 27 | 0 | return $self->{_q}; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | #----------------------------------------------------------------------------------------------------------- | ||||||||||
| 31 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 32 | 0 | my $class = shift; | |||||||||
| 33 | 0 | my $q = shift; | |||||||||
| 34 | |||||||||||
| 35 | 0 | my $self = {_q => $q}; | |||||||||
| 36 | |||||||||||
| 37 | 0 | bless $self, $class; | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 1 | 1 | |||||||||
| 41 | |||||||||||
| 42 | __END__ | ||||||||||