Importer/Pure/Parser/simple.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 80.9% 17 / 21 CC 1 SCAR 1.8
CC
1
Cov
87%
parse
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Importer/Pure/Parser/struct.pm ↑ Summary Pure.pm »
1 package Catmandu::Importer::Pure::Parser::simple;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use XML::LibXML::Simple ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.05';
8  
9 19 ▶has xmlsimple => ( is => 'ro', default => sub { XML::LibXML::Simple->new } );
Subroutine __ANON__: called CC=1 SCAR=0.0
10  
11 0 ▶sub parse {
Subroutine parse: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my ($self, $dom) = @_;
13  
14 0 $self->xmlsimple->XMLin(
15 $dom , KeepRoot => 0, ForceArray => 1, NsStrip => 1, KeyAttr => []);
16 }
17  
18 1 1;
« Importer/Pure/Parser/struct.pm ↑ Summary Pure.pm »