blib/lib/Embperl/Recipe/EmbperlPODXSLT.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 31 CC 2 SCAR 12.0
CC
2
Cov
0%
get_recipe
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1  
2 ###################################################################################
3 #
4 # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
5 # Embperl - Copyright (c) 2008-2015 Gerald Richter
6 # Embperl - Copyright (c) 2015-2023 actevy.io
7 #
8 # You may distribute under the terms of either the GNU General Public
9 # License or the Artistic License, as specified in the Perl README file.
10 #
11 # THIS PACKAGE IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESS OR
12 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
13 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 #
15 ###################################################################################
16
17  
18  
19 package Embperl::Recipe::EmbperlPODXSLT ;
20  
21 use strict ;
22 use vars qw{@ISA} ;
23  
24 use Embperl::Recipe::Embperl ;
25  
26 no warnings "uninitialized" ;
27  
28 @ISA = ('Embperl::Recipe::EmbperlXSLT') ;
29  
30 # ---------------------------------------------------------------------------------
31 #
32 # Create a new recipe by converting request parameter
33 #
34 # ---------------------------------------------------------------------------------
35  
36  
37 sub get_recipe
38  
39 {
40 my ($class, $r, $recipe) = @_ ;
41  
42 my $epsrc = Embperl::Recipe::Embperl -> get_recipe ($r, $recipe, undef, 'EmbperlBlocks') ;
43  
44 push @$epsrc, { type => 'eptostring' } ;
45
46 my $ep = Embperl::Recipe::EmbperlXSLT -> get_recipe ($r, $recipe, $epsrc, 'POD') ;
47 for (my $i = @$epsrc; $i < @$ep; $i++)
48 {
49 $ep -> [$i] -> {'cache'} = 0 if (exists $ep -> [$i] -> {'cache'}) ;
50 }
51  
52 return $ep ;
53 }
54  
55  
56