File Coverage

blib/lib/SOAP/WSDL/PortType.pm
Criterion Covered Total %
statement 19 19 100.0
branch 2 2 100.0
condition n/a
subroutine 7 7 100.0
pod 0 1 0.0
total 28 29 96.5


line stmt bran cond sub pod time code
1             package SOAP::WSDL::PortType;
2 2     2   13490 use strict;
  2         4  
  2         62  
3 2     2   6 use warnings;
  2         2  
  2         44  
4 2     2   397 use Class::Std::Fast::Storable;
  2         16037  
  2         15  
5 2     2   194 use List::Util;
  2         4  
  2         150  
6 2     2   8 use base qw(SOAP::WSDL::Base);
  2         3  
  2         521  
7              
8             our $VERSION = 3.003;
9              
10             my %operation_of :ATTR(:name :default<()>);
11              
12             #
13             #=head2 find_operation
14             #
15             #$port_type->find_operation($namespace, $name)
16             #
17             #Returns the PortType's operation object matching the given namespace and
18             #name
19             #
20              
21             sub find_operation {
22             return List::Util::first {
23 8 100   8   39 ( $_->get_targetNamespace() eq $_[1] ) && ( $_->get_name() eq $_[2] )
24 3     3 0 981 } @{ $operation_of{ ${ $_[0] } } };
  3         2  
  3         17  
25             };
26              
27             1;