lib/Class/DBI/Lite/AdHocEntity.pm

filter: Statementstmt 100% 28 / 28 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 75.0% 3 / 4 totaltotal 97.7% 43 / 44 CC 2 SCAR 1.7
CC
2
Cov
100%
AUTOLOAD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Class/DBI/Lite/Iterator.pm ↑ Summary lib/Class/DBI/Lite/CacheManager/Memcached.pm »
1  
2 package
3 Class::DBI::Lite::AdHocEntity;
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use base 'Class::DBI::Lite';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Carp 'confess';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10  
11 #==============================================================================
12 sub new
13 2 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
14 2 my ($class, %args) = @_;
15
16 2 return bless \%args, $class;
17 }# end new()
18  
19  
20 #==============================================================================
21 1 ▶sub create { confess "Cannot call 'create' on a @{[ __PACKAGE__ ]}" }
Subroutine create: called CC=1 SCAR=0.0
Pod documented
22 1 ▶sub update { confess "Cannot call 'update' on a @{[ __PACKAGE__ ]}" }
Subroutine update: called CC=1 SCAR=0.0
Pod documented
23 1 ▶sub delete { confess "Cannot call 'delete' on a @{[ __PACKAGE__ ]}" }
Subroutine delete: called CC=1 SCAR=0.0
Pod documented
24  
25  
26 #==============================================================================
27 sub AUTOLOAD
28 3 ▶{
Subroutine AUTOLOAD: called CC=2 SCAR=6.9
29 3 my $s = shift;
30
31 3 our $AUTOLOAD;
32 3 my ($key) = $AUTOLOAD =~ m/([^:]+)$/;
33
34 3 ▶ return unless exists $s->{data}->{$key};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $s->{"data"}{$key} 1 2 3
35
36 # Read-only access:
37 2 $s->{data}->{$key};
38 }# end AUTOLOAD()
39  
40  
41 #==============================================================================
42 sub DESTROY
43 2 ▶{
Subroutine DESTROY: called CC=1 SCAR=0.0
44 2 my $s = shift;
45
46 2 undef( %$s );
47 }# end DESTROY()
48  
49 1 1;# return true:
50  
« lib/Class/DBI/Lite/Iterator.pm ↑ Summary lib/Class/DBI/Lite/CacheManager/Memcached.pm »