File Coverage

blib/lib/SOAP/Lite/Deserializer/XMLSchemaSOAP1_2.pm
Criterion Covered Total %
statement 9 14 64.2
branch n/a
condition n/a
subroutine 3 6 50.0
pod 0 2 0.0
total 12 22 54.5


line stmt bran cond sub pod time code
1             package SOAP::Lite::Deserializer::XMLSchemaSOAP1_2;
2 25     25   15605 use SOAP::Lite::Deserializer::XMLSchemaSOAP1_1;
  25         161  
  25         2389  
3              
4 0     0 0   sub anyTypeValue { 'anyType' }
5              
6             sub as_boolean; *as_boolean = \&SOAP::Lite::Deserializer::XMLSchemaSOAP1_1::as_boolean;
7 0     0 0   sub as_base64 { shift; require MIME::Base64; MIME::Base64::decode_base64(shift) }
  0            
  0            
8              
9             BEGIN {
10 25     25   146 no strict 'refs';
  25         49  
  25         2202  
11 25     25   74 for my $method (qw(
12             anyType
13             string float double decimal dateTime timePeriod gMonth gYearMonth gYear
14             century gMonthDay gDay duration recurringDuration anyURI
15             language integer nonPositiveInteger negativeInteger long int short byte
16             nonNegativeInteger unsignedLong unsignedInt unsignedShort unsignedByte
17             positiveInteger date time
18             )) {
19 800         1217 my $name = 'as_' . $method;
20 800     0   9149 *$name = sub { $_[1] };
  0            
21             }
22             }
23              
24             1;