blib/lib/oEdtk/XML/DTD/Utils.pm

filter: Statementstmt 50.0% 11 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 21.4% 3 / 14 Podpod 100% 11 / 11 totaltotal 53.1% 25 / 47 CC 1 SCAR 5.8
CC
1
Cov
50%
found_in_list
2.0
load_xml_catalogs
2.0
list_children_nodes
2.0
CRAP 1.8
« lib/oEdtk/FPField.pm ↑ Summary lib/oEdtk/Util.pm »
1 package oEdtk::XML::DTD::Utils;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use oEdtk::XML::DTD;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 our $VERSION = '2.1131';
7  
8 # oEdtk::XML::DTD::Utils was the fork's name for the DTD validator; it was merged
9 # into oEdtk::XML::DTD at S21 (the two were about 90% identical). This module stays
10 # loadable for the fork's parked callers and forwards every function, so the
11 # symbols resolve under their old name.
12 0 ▶sub found_in_list { return oEdtk::XML::DTD::found_in_list(@_) }
Subroutine found_in_list: not called CC=1 SCAR=6.9
Pod documented
13 0 ▶sub load_xml_catalogs { return oEdtk::XML::DTD::load_xml_catalogs(@_) }
Subroutine load_xml_catalogs: not called CC=1 SCAR=6.9
Pod documented
14 0 ▶sub list_children_nodes { return oEdtk::XML::DTD::list_children_nodes(@_) }
Subroutine list_children_nodes: not called CC=1 SCAR=6.9
Pod documented
15 0 ▶sub validate_xml { return oEdtk::XML::DTD::validate_xml(@_) }
Subroutine validate_xml: not called CC=1 SCAR=6.9
Pod documented
16 0 ▶sub parse_xml { return oEdtk::XML::DTD::parse_xml(@_) }
Subroutine parse_xml: not called CC=1 SCAR=6.9
Pod documented
17 0 ▶sub parse_and_validate_xml_file { return oEdtk::XML::DTD::parse_and_validate_xml_file(@_) }
Subroutine parse_and_validate_xml_file: not called CC=1 SCAR=6.9
Pod documented
18 0 ▶sub parse_and_validate_xml_string { return oEdtk::XML::DTD::parse_and_validate_xml_string(@_) }
Subroutine parse_and_validate_xml_string: not called CC=1 SCAR=6.9
Pod documented
19 0 ▶sub parse_and_validate_xml_file_xsd { return oEdtk::XML::DTD::parse_and_validate_xml_file_xsd(@_) }
Subroutine parse_and_validate_xml_file_xsd: not called CC=1 SCAR=6.9
Pod documented
20 0 ▶sub xml_to_txt { return oEdtk::XML::DTD::xml_to_txt(@_) }
Subroutine xml_to_txt: not called CC=1 SCAR=6.9
Pod documented
21 0 ▶sub first_id { return oEdtk::XML::DTD::first_id(@_) }
Subroutine first_id: not called CC=1 SCAR=6.9
Pod documented
22 0 ▶sub xpath { return oEdtk::XML::DTD::xpath(@_) }
Subroutine xpath: not called CC=1 SCAR=6.9
Pod documented
23  
24 1 1;
25  
26 =head1 NAME
27  
28 oEdtk::XML::DTD::Utils - delegate to oEdtk::XML::DTD
29  
30 =head1 SYNOPSIS
31  
32 use oEdtk::XML::DTD::Utils;
33  
34 oEdtk::XML::DTD::Utils::parse_and_validate_xml_file($file, \@ids);
35  
36 =head1 DESCRIPTION
37  
38 The fork shipped this module alongside F<oEdtk::XML::DTD>; the two were about 90%
39 identical and were merged into L<oEdtk::XML::DTD> at S21 of the fork-merge plan.
40 This module keeps the old name available to the fork's callers and forwards every
41 function to L<oEdtk::XML::DTD>.
42  
43 =head1 FUNCTIONS
44  
45 Every function below forwards its arguments to the same-named function in
46 L<oEdtk::XML::DTD> and returns its result:
47  
48 =over 4
49  
50 =item found_in_list
51  
52 =item load_xml_catalogs
53  
54 =item list_children_nodes
55  
56 =item validate_xml
57  
58 =item parse_xml
59  
60 =item parse_and_validate_xml_file
61  
62 =item parse_and_validate_xml_string
63  
64 =item parse_and_validate_xml_file_xsd
65  
66 =item xml_to_txt
67  
68 =item first_id
69  
70 =item xpath
71  
72 =back
73  
74 =head1 AUTHOR
75  
76 The oEdtk team.
77  
78 =cut
« lib/oEdtk/FPField.pm ↑ Summary lib/oEdtk/Util.pm »