Simple/Parser/XML/LibXML.pm

filter: Statementstmt 90.0% 18 / 20 Branchbran n/a Conditioncond 40.0% 2 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 83.3% 5 / 6 Podpod 100% 2 / 2 totaltotal 75.0% 27 / 36 CC 3 SCAR 6.9
CC
3
Cov
80%
new
3.3
parse_response
2.0
BEGIN
1.0
CRAP 2.0
« Simple.pm ↑ Summary Simple/Parser/JSON.pm »
1 package WebService::Simple::Parser::XML::LibXML;
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 1 ▶use base qw(WebService::Simple::Parser);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use XML::LibXML;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 __PACKAGE__->mk_accessors($_) for qw(libxml);
8  
9 sub new
10 1 ▶{
Subroutine new: called CC=3 SCAR=12.0
Pod documented
11 1 my $class = shift;
12 1 ▶ my $args = shift || {};
Condition50%1/2
shift() || {}
l!l
01
MC/DC0%0/1
shift() || {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
13 1 ▶ $args->{libxml} ||= XML::LibXML->new;
Condition33%1/3
$args->{"libxml"} ||= "XML::LibXML"->new
l!l&&r!l&&!r
010
MC/DC0%0/2
$args->{"libxml"} ||= "XML::LibXML"->new
$args->{"libxml"} "XML::LibXML"->new
Truth table33%1/3
A ||= B
A= $args->{"libxml"}B= "XML::LibXML"->new
ABresult
1X1
011
000
14 1 $class->SUPER::new($args);
15 }
16  
17 sub parse_response
18 0 ▶{
Subroutine parse_response: not called CC=1 SCAR=6.9
Pod documented
19 0 my $self = shift;
20 0 $self->libxml->parse_string( $_[0]->decoded_content );
21 }
22  
23 1 1;
24  
25 __END__
« Simple.pm ↑ Summary Simple/Parser/JSON.pm »