Simple/Parser/XML/Simple.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 2 / 2 totaltotal 88.2% 30 / 34 CC 2 SCAR 2.6
CC
2
Cov
92%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Simple/Parser/XML/Lite.pm ↑ Summary Simple/Parser.pm »
1 # $Id$
2  
3 package WebService::Simple::Parser::XML::Simple;
4 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use base qw(WebService::Simple::Parser);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use XML::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 11 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod documented
10 11 my $class = shift;
11 11 my %args = @_;
12 11 ▶ my $xs = delete $args{xs} || XML::Simple->new;
Condition33%1/3
delete $args{'xs'} || 'XML::Simple'->new
l!l&&r!l&&!r
0110
MC/DC0%0/2
delete $args{'xs'} || 'XML::Simple'->new
delete $args{'xs'} 'XML::Simple'->new
Truth table33%1/3
A || B
A= delete $args{'xs'}B= 'XML::Simple'->new
ABresult
1X1
011
000
13 11 my $self = $class->SUPER::new(%args);
14 11 $self->{xs} = $xs;
15 11 return $self;
16 }
17  
18 1 ▶sub parse_response {
Subroutine parse_response: called CC=1 SCAR=0.0
Pod documented
19 1 my $self = shift;
20 1 $self->{xs}->parse_string( $_[0]->decoded_content );
21 }
22  
23 6 1;
24  
25 __END__
« Simple/Parser/XML/Lite.pm ↑ Summary Simple/Parser.pm »