lib/SOAP/Lite/Deserializer/XMLSchemaSOAP1_1.pm

filter: Statementstmt 85.0% 17 / 20 Branchbran 100% 4 / 4 Conditioncond 100% 6 / 6 MC/DCmcdc 100% 4 / 4 Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 5 totaltotal 81.2% 39 / 48 CC 6 SCAR 9.7
CC
6
Cov
90%
as_boolean
5.0
as_base64
2.0
BEGIN
2.0
CRAP 2.6
« lib/SOAP/Lite/Deserializer/XMLSchema1999.pm ↑ Summary lib/Apache/SOAP.pm »
1 package SOAP::Lite::Deserializer::XMLSchemaSOAP1_1;
2 47 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 4 ▶sub anyTypeValue { 'ur-type' }
Subroutine anyTypeValue: called CC=1 SCAR=0.0
Pod undocumented
5  
6 sub as_boolean {
7 18 ▶ shift;
Subroutine as_boolean: called CC=5 SCAR=16.1
Pod undocumented
8 18 my $value = shift;
9 18 ▶ $value eq '1' || $value eq 'true'
Branch: 2 branches
BranchTrueFalseTotal
$value eq '1' || $value eq 'true' ? : 7 11 18
$value eq '0' || $value eq 'false' ? : 8 3 11
Condition100%6/6
$value eq 1 or $value eq "true"
l!l&&r!l&&!r
2511
$value eq 0 or $value eq "false"
l!l&&r!l&&!r
263
MC/DC100%2/2
$value eq 1 or $value eq "true"
$value eq 1 $value eq "true"
MC/DC100%2/2
$value eq 0 or $value eq "false"
$value eq 0 $value eq "false"
Truth table100%3/3
A or B
A= $value eq 1B= $value eq "true"
ABresult
1X1
011
000
Truth table100%3/3
A or B
A= $value eq 0B= $value eq "false"
ABresult
1X1
011
000
10 ? 1
11 : $value eq '0' || $value eq 'false'
12 ? 0
13 : die "Wrong boolean value '$value'\n"
14 }
15  
16 0 ▶sub as_base64 { shift; require MIME::Base64; MIME::Base64::decode_base64(shift) }
Subroutine as_base64: not called CC=1 SCAR=6.9
Pod undocumented
17  
18 1 ▶sub as_ur_type { $_[1] }
Subroutine as_ur_type: called CC=1 SCAR=0.0
Pod undocumented
19  
20 1 ▶sub as_anyURI { $_[1] }
Subroutine as_anyURI: called CC=1 SCAR=0.0
Pod undocumented
21  
22 BEGIN {
23 47 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
24 47 ▶ for my $method (qw(
Subroutine BEGIN: called CC=2 SCAR=6.9
25 string float double decimal timeDuration recurringDuration uriReference
26 integer nonPositiveInteger negativeInteger long int short byte
27 nonNegativeInteger unsignedLong unsignedInt unsignedShort unsignedByte
28 positiveInteger timeInstant time timePeriod date month year century
29 recurringDate recurringDay language
30 1410 ▶ )) { my $name = 'as_' . $method; *$name = sub { $_[1] } }
Subroutine __ANON__: called CC=1 SCAR=0.0
31 }
32  
33 47 1;
« lib/SOAP/Lite/Deserializer/XMLSchema1999.pm ↑ Summary lib/Apache/SOAP.pm »