File Coverage

blib/lib/SOAP/WSDL/PortType.pm
Criterion Covered Total %
statement 22 22 100.0
branch 2 2 100.0
condition n/a
subroutine 8 8 100.0
pod 0 1 0.0
total 32 33 96.9


line stmt bran cond sub pod time code
1             package SOAP::WSDL::PortType;
2 2     2   33401 use strict;
  2         6  
  2         266  
3 2     2   15 use warnings;
  2         4  
  2         86  
4 2     2   2133 use Class::Std::Fast::Storable;
  2         31385  
  2         21  
5 2     2   388 use List::Util;
  2         4  
  2         177  
6 2     2   11 use base qw(SOAP::WSDL::Base);
  2         5  
  2         738  
7              
8 2     2   15 use version; our $VERSION = qv('3.001');
  2         3  
  2         14  
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   73 ( $_->get_targetNamespace() eq $_[1] ) && ( $_->get_name() eq $_[2] )
24 3     3 0 1464 } @{ $operation_of{ ${ $_[0] } } };
  3         5  
  3         24  
25             };
26              
27             1;