.htmlgen/FunctionalPerl/Htmlgen/PXMLMapper.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 0.0% 0 / 2 totaltotal 78.3% 29 / 37 CC 1 SCAR 2.0
CC
1
Cov
85%
match_element_names
2.0
map_element
2.0
BEGIN
1.0
CRAP 1.2
« .htmlgen/FunctionalPerl/Htmlgen/default_config.pm ↑ Summary examples/predicates »
1 #
2 # Copyright (c) 2014-2019 Christian Jaeger, copying@christianjaeger.ch
3 #
4 # This is free software, offered under either the same terms as perl 5
5 # or the terms of the Artistic License version 2 or the terms of the
6 # MIT License (Expat version). See the file COPYING.md that came
7 # bundled with this file.
8 #
9  
10 =head1 NAME
11  
12 FunctionalPerl::Htmlgen::PXMLMapper - base class for PXML mappers
13  
14 =head1 SYNOPSIS
15  
16 =head1 DESCRIPTION
17  
18 Holding context that may be needed by mapping functions that change
19 the PXML representing a page in htmlgen.
20  
21 =head1 NOTE
22  
23 This is alpha software! Read the status section in the package README
24 or on the L<website|http://functional-perl.org/>.
25  
26 =cut
27  
28 package FunctionalPerl::Htmlgen::PXMLMapper;
29  
30 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 2 ▶use warnings FATAL => 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
33 2 ▶use experimental "signatures";
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35  
36 2 ▶use FP::Docstring;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 2 ▶use FP::Predicates;
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 2 ▶use FP::Struct [
Subroutine BEGIN: called CC=1 SCAR=0.0
40 2 [\&is_nonnullstring, "path0"],
41 [\&is_procedure, "maybe_have_path0"],
42 [\&is_procedure, "perhaps_filename_to_path0"],
43 [maybe(\&is_procedure), "map_code_body"],
44 [instance_of("FunctionalPerl::Htmlgen::PathTranslate"), "pathtranslate"],
45 2 ];
46  
47 0 ▶sub match_element_names($self) {
Subroutine match_element_names: not called CC=1 SCAR=6.9
Pod undocumented
48 0 __ 'method () -> [string] -- array of element names';
49 0 die "abstract class, missing implementation";
50 }
51  
52 0 ▶sub map_element ($self, $e, $uplist) {
Subroutine map_element: not called CC=1 SCAR=6.9
Pod undocumented
53 0 __
54 'method ($e: PXML::Element, $uplist: list_of PXML::Element) -> PXML::Element';
55 0 die "abstract class, missing implementation";
56 }
57  
58 2 _END_
« .htmlgen/FunctionalPerl/Htmlgen/default_config.pm ↑ Summary examples/predicates »