OpenInteract2/Setup/InitializeObservers.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 3 totaltotal 76.6% 23 / 30 CC 1 SCAR 1.3
CC
1
Cov
85%
execute
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« OpenInteract2/Setup/RequireSystemClasses.pm ↑ Summary OpenInteract2/Manage/Website/InstallPackageData.pm »
1 package OpenInteract2::Setup::InitializeObservers;
2  
3 # $Id: InitializeObservers.pm,v 1.3 2005/03/18 04:09:51 lachoy Exp $
4  
5 87 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 87 ▶use base qw( OpenInteract2::Setup );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 87 ▶use OpenInteract2::Config::Initializer;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 87 ▶use OpenInteract2::Observer;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 87 $OpenInteract2::Setup::InitializeObservers::VERSION = sprintf("%d.%02d", q$Revision: 1.3 $ =~ /(\d+)\.(\d+)/);
11  
12 87 ▶sub get_name {
Subroutine get_name: called CC=1 SCAR=0.0
Pod undocumented
13 87 return 'initialize observers';
14 }
15  
16 1 ▶sub get_dependencies {
Subroutine get_dependencies: called CC=1 SCAR=0.0
Pod undocumented
17 1 return ( 'initialize actions' );
18 }
19  
20 0 ▶sub execute {
Subroutine execute: not called CC=1 SCAR=6.9
Pod undocumented
21 0 my ( $self ) = @_;
22 0 OpenInteract2::Observer->initialize(); # Observers
23 0 OpenInteract2::Config::Initializer->read_observers(); # Configuration watchers
24  
25 }
26  
27 87 OpenInteract2::Setup->register_factory_type( get_name() => __PACKAGE__ );
28  
29 87 1;
30  
31 __END__
« OpenInteract2/Setup/RequireSystemClasses.pm ↑ Summary OpenInteract2/Manage/Website/InstallPackageData.pm »