lib/XML/Compile/Licensed.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 75.0% 24 / 32 CC 2 SCAR 8.9
CC
2
Cov
72%
soapServer
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
↑ Summary
1 # Copyrights 2016-2018 by [Mark Overmeer <markov@cpan.org>].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of distribution XML-Compile-Licensed. Meta-POD processed
6 # with OODoc into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself
8  
9 package XML::Compile::Licensed;
10 1 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 $VERSION = '0.02';
12  
13  
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶use File::Spec ();
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use File::Basename qw/dirname/;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20  
21 1 our %soap_servers =
22 ( BEA => # Oracle's BEA
23 { xsddir => 'bea'
24 , xsds => [ qw(bea_wli_sb_context.xsd bea_wli_sb_context-fix.xsd) ]
25 }
26 , SharePoint => # MicroSoft's SharePoint
27 { xsddir => 'sharepoint'
28 , xsds => [ qw(sharepoint-soap.xsd sharepoint-serial.xsd) ]
29 }
30 );
31  
32 sub soapServer($)
33 0 ▶{ my ($class, $type) = @_;
Subroutine soapServer: not called CC=2 SCAR=17.9
Pod documented
34 0 ▶ my $config = $soap_servers{$type} or return ();
Branch: 1 branch
BranchTrueFalseTotal
my $config = $XML::Compile::Licensed::soap_servers{$type} or return () 0 0 0
35  
36 0 my $up = dirname __FILE__;
37 0 my $xsddir = File::Spec->catdir($up, 'SOAP', 'xsd', $config->{xsddir});
38 0 ($xsddir, $config);
39 }
40  
41 1 1;
↑ Summary