blib/lib/XML/Grammar/Screenplay/FromProto/API/ListImages.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 41 / 41 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/Grammar/Screenplay.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/FromProto/Parser.pm »
1 package XML::Grammar::Screenplay::FromProto::API::ListImages;
2 4 $XML::Grammar::Screenplay::FromProto::API::ListImages::VERSION = '0.32.0';
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶use MooX 'late';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use XML::LibXML ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶use XML::Grammar::Screenplay::API::ImageListDoc ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub calc_doc__from_proto_text
13 2 ▶{
Subroutine calc_doc__from_proto_text: called CC=1 SCAR=0.0
Pod documented
14 2 my ( $self, $args ) = @_;
15  
16 2 require XML::Grammar::Screenplay::FromProto::Parser::QnD;
17 2 my $ret = XML::Grammar::Screenplay::API::ImageListDoc->new(
18 {
19 parser_class => 'XML::Grammar::Screenplay::FromProto::Parser::QnD',
20 %$args,
21 }
22 );
23 2 $ret->_xml( $ret->convert($args) );
24 2 my $xml_parser = XML::LibXML->new();
25 2 $xml_parser->validation(0);
26 2 $ret->_dom( $xml_parser->parse_string( $ret->_xml() ) );
27  
28 2 return $ret;
29 }
30  
31 sub calc_doc__from_intermediate_xml
32 1 ▶{
Subroutine calc_doc__from_intermediate_xml: called CC=1 SCAR=0.0
Pod documented
33 1 my ( $self, $args ) = @_;
34  
35 1 require XML::Grammar::Screenplay::FromProto::Parser::QnD;
36 1 my $ret = XML::Grammar::Screenplay::API::ImageListDoc->new(
37 {
38 parser_class => 'XML::Grammar::Screenplay::FromProto::Parser::QnD',
39 }
40 );
41 1 my $xml_parser = XML::LibXML->new();
42 1 $xml_parser->validation(0);
43 1 $ret->_dom( $xml_parser->parse_file( $args->{filename} ) );
44  
45 1 return $ret;
46 }
47  
48 4 1;
49  
50 # __END__
51  
52 __END__
« blib/lib/XML/Grammar/Screenplay.pm ↑ Summary blib/lib/XML/Grammar/Screenplay/FromProto/Parser.pm »