Salesforce/Serializer.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 64.0% 16 / 25 CC 2 SCAR 11.0
CC
2
Cov
65%
encode_object
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Salesforce/Constants.pm ↑ Summary Salesforce/Simple.pm »
1 package WWW::Salesforce::Serializer;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use SOAP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our @ISA = qw( SOAP::Serializer );
8  
9 2 our $VERSION = '0.303';
10 2 $VERSION = eval $VERSION;
11  
12  
13 #**************************************************************************
14 # encode_object( $object, $name, $type, $attr )
15 # -- overloaded encode_object() function to take care of problem
16 # with xsi:nil="true" attribute of tags that have no attributes
17 #**************************************************************************
18 sub encode_object {
19 0 ▶ my ( $self, $object, $name, $type, $attr ) = @_;
Subroutine encode_object: not called CC=2 SCAR=17.9
Pod undocumented
20  
21 #print "\n\t\t",$name," *********************************************\n" if $name;
22 0 ▶ if ( defined $attr->{'xsi:nil'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $attr->{"xsi:nil"}) 0 0 0
23 0 delete $attr->{'xsi:nil'};
24 0 return [ $name, {%$attr} ];
25 }
26 0 return $self->SUPER::encode_object( $object, $name, $type, $attr );
27 }
28  
29 2 1;
« Salesforce/Constants.pm ↑ Summary Salesforce/Simple.pm »