lib/SOAP/Lite/Deserializer/XMLSchemaSOAP1_1.pm

filter: Statementstmt 85.7% 18 / 21 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.6% 40 / 49 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 48 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 48 our $VERSION = '1.27'; # VERSION
5  
6 4 ▶sub anyTypeValue { 'ur-type' }
Subroutine anyTypeValue: called CC=1 SCAR=0.0
Pod undocumented
7  
8 18 ▶sub as_boolean {
Subroutine as_boolean: called CC=5 SCAR=16.1
Pod undocumented
9 18 shift;
10 18 my $value = shift;
11 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
12 ? 1
13 : $value eq '0' || $value eq 'false'
14 ? 0
15 : die "Wrong boolean value '$value'\n"
16 }
17  
18 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
19  
20 1 ▶sub as_ur_type { $_[1] }
Subroutine as_ur_type: called CC=1 SCAR=0.0
Pod undocumented
21  
22 1 ▶sub as_anyURI { $_[1] }
Subroutine as_anyURI: called CC=1 SCAR=0.0
Pod undocumented
23  
24 48 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=6.9
25 48 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
26 48 for my $method (qw(
27 string float double decimal timeDuration recurringDuration uriReference
28 integer nonPositiveInteger negativeInteger long int short byte
29 nonNegativeInteger unsignedLong unsignedInt unsignedShort unsignedByte
30 positiveInteger timeInstant time timePeriod date month year century
31 recurringDate recurringDay language
32 1440 ▶ )) { my $name = 'as_' . $method; *$name = sub { $_[1] } }
Subroutine __ANON__: called CC=1 SCAR=0.0
33 }
34  
35 48 1;
« lib/SOAP/Lite/Deserializer/XMLSchema1999.pm ↑ Summary lib/Apache/SOAP.pm »