Filter.pm

filter: Statementstmt 100% 22 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 93.3% 28 / 30 CC 2 SCAR 2.9
CC
2
Cov
96%
GetLogger
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Filter/Perl/POD.pm ↑ Summary
1 #** @file Filter.pm
2 # @verbatim
3 #####################################################################
4 # This program is not guaranteed to work at all, and by using this #
5 # program you release the author of any and all liability. #
6 # #
7 # You may use this code as long as you are in compliance with the #
8 # license (see the LICENSE file) and this notice, disclaimer and #
9 # comment box remain intact and unchanged. #
10 # #
11 # Package: Doxygen #
12 # Class: Filter #
13 # Description: Methods for prefiltering code for Doxygen #
14 # #
15 # Written by: Bret Jordan (jordan at open1x littledot org) #
16 # Created: 2011-10-13 #
17 #####################################################################
18 # @endverbatim
19 #
20 # @copy 2011, Bret Jordan (jordan2175@gmail.com, jordan@open1x.org)
21 #*
22 package Doxygen::Filter;
23  
24 1 ▶use 5.8.8;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 ▶use Log::Log4perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 1 our $VERSION = '1.73';
30 1 $VERSION = eval $VERSION;
31  
32  
33  
34 sub GetLogger
35 11 ▶{
Subroutine GetLogger: called CC=2 SCAR=7.0
Pod undocumented
36 #** @method public GetLogger ($object)
37 # This method is a helper method to get the Log4perl logger object and make sure
38 # it knows from which class it was called regardless of where it actually lives.
39 #*
40 11 my $self = shift;
41 11 my $object = shift;
42 11 my $package = ref($object);
43 11 my @data = caller(1);
44 11 my $caller = (split "::", $data[3])[-1];
45 11 my $sLoggerName = $package . "::" . $caller;
46 11 ▶ print "+++ DEBUGGER +++ $sLoggerName\n" if ($self->{'_iDebug'} == 1);
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"_iDebug"} == 1 0 11 11
47  
48 11 return Log::Log4perl->get_logger("$sLoggerName");
49 }
50  
51  
52 1 return 1;
« Filter/Perl/POD.pm ↑ Summary