Importer/Pure/Parser/struct.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 66.6% 14 / 21 CC 2 SCAR 11.0
CC
2
Cov
69%
parse
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Importer/Pure/Parser/raw.pm ↑ Summary Importer/Pure/Parser/simple.pm »
1 package Catmandu::Importer::Pure::Parser::struct;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use XML::Struct qw(readXML);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.05';
8  
9 0 ▶sub parse {
Subroutine parse: not called CC=2 SCAR=17.9
Pod undocumented
10 0 my ($self,$dom) = @_;
11  
12 0 ▶ return undef unless defined $dom;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $dom 0 0 0
13 0 readXML($dom);
14 }
15  
16 1 1;
« Importer/Pure/Parser/raw.pm ↑ Summary Importer/Pure/Parser/simple.pm »