Simple/Transcode.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 73.3% 22 / 30 CC 3 SCAR 10.4
CC
3
Cov
74%
BEGIN
3.7
_blorp
2.0
BEGIN
1.0
CRAP 2.8
« Simple/DumpAsXML.pm ↑ Summary Simple/PullParserToken.pm »
1 package Pod::Simple::Transcode;
2 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 15 our $VERSION = '3.48';
4  
5 15 ▶BEGIN {
Subroutine BEGIN: called CC=3 SCAR=13.1
6 15 ▶ if(defined &DEBUG) {;} # Okay
Branch: 2 branches
BranchTrueFalseTotal
if (defined &Pod::Simple::Transcode::DEBUG) { } 0 15 15
elsif (defined &Pod::Simple::DEBUG) { } 15 0 15
7 15 elsif( defined &Pod::Simple::DEBUG ) { *DEBUG = \&Pod::Simple::DEBUG; }
8 0 else { *DEBUG = sub () {0}; }
9 }
10  
11 15 our @ISA;
12 15 foreach my $class (
13 'Pod::Simple::TranscodeSmart',
14 'Pod::Simple::TranscodeDumb',
15 '',
16 ) {
17 15 ▶ $class or die "Couldn't load any encoding classes";
Branch: 1 branch
BranchTrueFalseTotal
$class or die "Couldn't load any encoding classes" 15 0 15
18 15 DEBUG and print STDERR "About to try loading $class...\n";
19 15 eval "require $class;";
20 15 ▶ if($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 15 15
21 0 DEBUG and print STDERR "Couldn't load $class: $@\n";
22 } else {
23 15 DEBUG and print STDERR "OK, loaded $class.\n";
24 15 @ISA = ($class);
25 15 last;
26 }
27 }
28  
29 0 ▶sub _blorp { return; } # just to avoid any "empty class" warning
Subroutine _blorp: not called CC=1 SCAR=6.9
30  
31 15 1;
32 __END__
« Simple/DumpAsXML.pm ↑ Summary Simple/PullParserToken.pm »