| 1 | #!/usr/bin/perl | ||||||||||||
| 2 | |||||||||||||
| 3 | package Catalyst::Plugin::Cache::Backend::Memory; | ||||||||||||
| 4 | 2 | ▶ | use Storable; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 2 | ▶ | use Storable qw/freeze thaw/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 10 | |||||||||||||
| 11 | 0 | ▶ | sub new { bless {}, shift } | ||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 12 | |||||||||||||
| 13 | 0 | ▶ | sub get { ${thaw($_[0]{$_[1]}) || return} }; | ||||||||||
|
Subroutine
get: not called CC=2 SCAR=17.9
Pod
undocumented
Condition0%0/2
thaw($_[0]{$_[1]}) || (return)
MC/DC0%0/1
thaw($_[0]{$_[1]}) || (return)
thaw($_[0]{$_[1]})
Truth table0%0/2
A
A= thaw($_[0]{$_[1]})
| |||||||||||||
| 14 | |||||||||||||
| 15 | 0 | ▶ | sub set { $_[0]{$_[1]} = freeze(\$_[2]) }; | ||||||||||
|
Subroutine
set: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 16 | |||||||||||||
| 17 | 0 | ▶ | sub remove { delete $_[0]{$_[1]} }; | ||||||||||
|
Subroutine
remove: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 18 | |||||||||||||
| 19 | 2 | __PACKAGE__; | |||||||||||
| 20 | |||||||||||||
| 21 | __END__ | ||||||||||||