OpenInteract2/SPOPS/DBI.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 63.6% 14 / 22 CC 1 SCAR 3.4
CC
1
Cov
73%
global_db_handle
2.0
connection_info
2.0
BEGIN
1.0
CRAP 1.4
« OpenInteract2/Exception/Parameter.pm ↑ Summary OpenInteract2/Manage/Package/Check.pm »
1 package OpenInteract2::SPOPS::DBI;
2  
3 # $Id: DBI.pm,v 1.8 2005/03/17 14:58:05 sjn Exp $
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw( OpenInteract2::SPOPS );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use OpenInteract2::Context qw( CTX );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 $OpenInteract2::SPOPS::DBI::VERSION = sprintf("%d.%02d", q$Revision: 1.8 $ =~ /(\d+)\.(\d+)/);
10  
11 # See SPOPS::Config::Initializer for initialization behavior
12  
13 0 ▶sub global_db_handle {
Subroutine global_db_handle: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my ( $pkg, $file, $line ) = caller;
15 0 die "Change call to 'global_db_handle()' at [$file] line [$line] to ",
16 "'global_datasource_handle()'\n";
17 }
18  
19 # We can do this since at startup every SPOPS object has 'datasource'
20 # defined
21  
22 0 ▶sub connection_info {
Subroutine connection_info: not called CC=1 SCAR=6.9
Pod undocumented
23 0 my ( $self, $connect_key ) = @_;
24 0 CTX->datasource_manager->get_datasource_info( $self->CONFIG->{datasource} );
25 }
26  
27 1 1;
28  
29 __END__
« OpenInteract2/Exception/Parameter.pm ↑ Summary OpenInteract2/Manage/Package/Check.pm »