blib/lib/Acme/SList/XSLT.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 8 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 40 SCAR 6.9
CC
1
Cov
0%
module
2.0
new
2.0
module
2.0
CRAP 2.0
1 package Acme::SList::XSLT;
2 $Acme::SList::XSLT::VERSION = '0.03';
3 use strict;
4 use warnings;
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 sub module { $mod_xslt; }
20  
21 sub new { $mod_xslt->new; }
22  
23 package Acme::SList::XML;
24 $Acme::SList::XML::VERSION = '0.03';
25 sub module { $mod_xml; }
26  
27 sub new { $mod_xml->new; }
28  
29 1;
30  
31 __END__