Contacts/Data.pm

filter: Statementstmt 65.2% 15 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 61.2% 19 / 31 CC 1 SCAR 2.9
CC
1
Cov
65%
decode_xml
2.0
encode_xml
2.0
BEGIN
1.0
CRAP 1.3
« Contacts/GroupList.pm ↑ Summary Contacts/Type/Base.pm »
1 package WWW::Google::Contacts::Data;
2 {
3 17 $WWW::Google::Contacts::Data::VERSION = '0.38';
4 }
5  
6 17 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 17 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 17 ▶use XML::Simple ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10 17 ▶use Encode;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub decode_xml {
13 0 ▶ my ( $class, $content ) = @_;
Subroutine decode_xml: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 0 my $xmls = XML::Simple->new;
16 0 my $data = $xmls->XMLin(
17 decode_utf8($content),
18 SuppressEmpty => undef,
19 KeyAttr => []
20 );
21 0 return $data;
22 }
23  
24 sub encode_xml {
25 0 ▶ my ( $class, $content ) = @_;
Subroutine encode_xml: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 0 my $xmls = XML::Simple->new;
28 0 my $xml = $xmls->XMLout( $content, KeepRoot => 1 );
29 0 return encode_utf8($xml);
30 }
31  
32 17 1;
« Contacts/GroupList.pm ↑ Summary Contacts/Type/Base.pm »