Salesforce/Serializer.pm

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