Decouple/DB.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
DB::DB
2.0
END
2.0
_build_special
2.0
CRAP 2.0
1 # $Id$
2 package Devel::Decouple::DB;
3 use base 'Devel::Decouple';
4  
5 use strict;
6 use warnings;
7 use Carp;
8 use version; our $VERSION = qv(0.0.2);
9  
10 # run the invoked code via the perl debugger...
11 sub DB::DB {
12  
13 }
14  
15 # this block will execute before the debugger exits
16 END {
17 my $self = _build_special( $0 );
18 print $self->report;
19 exit;
20 }
21  
22 sub _build_special{
23 my $module = shift;
24 my %params;
25
26 # build the params hash
27 $params{_DOCUMENT_} = $module;
28 $params{_MODULES_} = '_ALL_';
29 $params{_DEFAULT_} = '_PRESERVED_';
30
31 # and an object
32 my $self = bless {%params}, __PACKAGE__;
33 $self->_build();
34
35 return $self;
36 }
37  
38 1; # return true
39 __END__