blib/lib/Acme/SList/XSLT.pm

filter: Statementstmt 60.0% 6 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod n/a totaltotal 50.0% 8 / 16 CC 1 SCAR 5.1
CC
1
Cov
60%
module
2.0
new
2.0
module
2.0
CRAP 1.7
↑ Summary
1 package Acme::SList::XSLT;
2 $Acme::SList::XSLT::VERSION = '0.04';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 my ($mod_xslt, $mod_xml);
7  
8 eval{
9 require XML::LibXSLT;
10 $mod_xslt = 'XML::LibXSLT';
11 $mod_xml = 'XML::LibXML';
12 };
13 if ($@) {
14 require Win32::MinXSLT;
15 $mod_xslt = 'Win32::MinXSLT';
16 $mod_xml = 'Win32::MinXML';
17 }
18  
19 0 ▶sub module { $mod_xslt; }
Subroutine module: not called CC=1 SCAR=6.9
20  
21 0 ▶sub new { $mod_xslt->new; }
Subroutine new: not called CC=1 SCAR=6.9
22  
23 package Acme::SList::XML;
24 $Acme::SList::XML::VERSION = '0.04';
25 0 ▶sub module { $mod_xml; }
Subroutine module: not called CC=1 SCAR=6.9
26  
27 0 ▶sub new { $mod_xml->new; }
Subroutine new: not called CC=1 SCAR=6.9
28  
29 1;
30  
31 __END__
↑ Summary