Wrapper/Delegator.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 66.6% 16 / 24 CC 2 SCAR 11.0
CC
2
Cov
65%
AUTOLOAD
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Wrapper/Request.pm ↑ Summary Wrapper/Statement.pm »
1 # -*-perl-*-
2 # Creation date: 2005-03-04 21:15:40
3 # Authors: Don
4 # Change log:
5 # $Revision: 1963 $
6  
7 # Copyright (c) 2005-2012 Don Owens <don@owensnet.com>. All rights reserved.
8  
9 # This is free software; you can redistribute it and/or modify it
10 # under the same terms as Perl itself. See perlartistic.
11  
12 # This program is distributed in the hope that it will be
13 # useful, but WITHOUT ANY WARRANTY; without even the implied
14 # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 # PURPOSE.
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 package DBIx::Wrapper::Delegator;
20  
21 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 2 ▶use vars qw($VERSION $AUTOLOAD);
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 $VERSION = do { my @r=(q$Revision: 1963 $=~/\d+/g); sprintf "%d."."%02d"x$#r,@r };
25  
26 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=2 SCAR=17.9
27 0 my $self = shift;
28  
29 0 (my $func = $AUTOLOAD) =~ s/^.*::([^:]+)$/$1/;
30 0 ▶ return undef if $func eq 'DESTROY';
Branch: 1 branch
BranchTrueFalseTotal
if $func eq "DESTROY" 0 0 0
31
32 0 my $key = $func; # turn method call into hash access
33 0 return $self->{$func};
34 }
35  
36  
37 2 1;
« Wrapper/Request.pm ↑ Summary Wrapper/Statement.pm »