blib/lib/Net/MundiPagg.pm

filter: Statementstmt 65.5% 19 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod n/a totaltotal 66.6% 24 / 36 SCAR 7.7
CC
2
Cov
66%
__ANON__
6.0
AUTOLOAD
2.0
BEGIN
1.0
CRAP 2.2
↑ Summary
1 package Net::MundiPagg;
2 1 $Net::MundiPagg::VERSION = '0.000001';
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use XML::Compile::SOAP11;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use XML::Compile::WSDL11;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use XML::Compile::Transport::SOAPHTTP;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use File::ShareDir qw{ module_file };
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 has 'client' => (
11 is => 'ro',
12 builder => sub {
13 0 ▶ my $wsdl = module_file( ref $_[0], 'mundipagg.wsdl' );
Subroutine __ANON__: not called CC=2 SCAR=17.9
14 0 my $client = XML::Compile::WSDL11->new($wsdl);
15  
16 0 foreach my $i ( 0 .. 2 ) {
17 0 my $xsd = module_file( ref $_[0], "schema$i.xsd" );
18 0 $client->importDefinitions($xsd);
19 }
20  
21 0 $client->compileCalls;
22  
23 0 return $client;
24 },
25 1 );
26  
27 1 our $AUTOLOAD;
28  
29 ## no critic (Subroutines::RequireArgUnpacking)
30 ## no critic (ClassHierarchies::ProhibitAutoloading)
31 sub AUTOLOAD {
32 0 ▶ my ( $method, $self, %args ) = ( $AUTOLOAD, @_ );
Subroutine AUTOLOAD: not called CC=1 SCAR=6.9
33  
34 0 $method =~ s/.*:://g;
35  
36 0 return $self->client->call( $method, %args );
37 }
38  
39 1 1;
40  
41 #ABSTRACT: Net::MundiPagg - Documentation coming soon :)
42  
43 __END__
↑ Summary