File Coverage

blib/lib/SOAP/WSDL/Generator/Visitor.pm
Criterion Covered Total %
statement 27 27 100.0
branch 2 4 50.0
condition n/a
subroutine 19 19 100.0
pod 15 16 93.7
total 63 66 95.4


line stmt bran cond sub pod time code
1             package SOAP::WSDL::Generator::Visitor;
2 1     1   12778 use strict;
  1         1  
  1         26  
3 1     1   3 use warnings;
  1         1  
  1         18  
4 1     1   384 use Class::Std::Fast::Storable;
  1         16049  
  1         5  
5              
6             our $VERSION = 3.003;
7              
8             my %definitions_of :ATTR(:name :default<()>);
9             my %type_prefix_of :ATTR(:name :default<()>);
10             my %element_prefix_of :ATTR(:name :default<()>);
11              
12             sub START {
13 1     1 0 192 my ($self, $ident, $arg_ref) = @_;
14 1 50       4 $type_prefix_of{ $ident } = 'MyType' if not exists
15             $arg_ref->{ 'type_prefix' };
16 1 50       5 $element_prefix_of{ $ident } = 'MyElement' if not exists
17             $arg_ref->{ 'element_prefix' };
18              
19             }
20              
21              
22             # WSDL stuff
23 1     1 1 11 sub visit_Definitions {}
24 1     1 1 3 sub visit_Binding {}
25 1     1 1 3 sub visit_Message {}
26 1     1 1 2 sub visit_Operation {}
27 1     1 1 3 sub visit_OpMessage {}
28 1     1 1 2 sub visit_Part {}
29 1     1 1 3 sub visit_Port {}
30 1     1 1 3 sub visit_PortType {}
31 1     1 1 3 sub visit_Service {}
32 1     1 1 3 sub visit_SoapOperation {}
33 1     1 1 3 sub visit_Types {}
34              
35             # XML Schema stuff
36 1     1 1 2 sub visit_XSD_Schema {}
37 1     1 1 3 sub visit_XSD_ComplexType {}
38 1     1 1 3 sub visit_XSD_Element {}
39 1     1 1 3 sub visit_XSD_SimpleType {}
40              
41             1;
42              
43             __END__