GrammarBase/Role/XSLT.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.0% 18 / 20 CC 1 SCAR 0.6
CC
1
Cov
87%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« GrammarBase/Role/RelaxNG.pm ↑ Summary GrammarBase/Role/XSLT/Global.pm »
1 package XML::GrammarBase::Role::XSLT;
2 $XML::GrammarBase::Role::XSLT::VERSION = '0.2.10';
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 use Package::Variant
7 3 ▶ importing => [ 'MooX::Role' => ['late'], ],
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 subs => [qw(has with)];
9  
10 # use MooX 'late';
11  
12 3 ▶use XML::LibXML 2.0017;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 0 ▶use XML::LibXSLT 1.80;
Subroutine BEGIN: called CC=1 SCAR=2.6
14  
15 use autodie;
16  
17 sub make_variant
18 {
19 my ( $class, $target_package, %args ) = @_;
20  
21 my $output_format = $args{output_format};
22  
23 with('XML::GrammarBase::Role::XSLT::Global');
24  
25 has "to_${output_format}_xslt_transform_basename" =>
26 ( isa => 'Str', is => 'rw' );
27  
28 has "_to_${output_format}_stylesheet" => (
29 isa => "XML::LibXSLT::StylesheetWrapper",
30 is => 'rw',
31 default => sub { return shift->_calc_stylesheet($output_format), },
32 lazy => 1,
33 );
34  
35 return;
36 }
37  
38 1;
39  
40 __END__
« GrammarBase/Role/RelaxNG.pm ↑ Summary GrammarBase/Role/XSLT/Global.pm »