lib/XML/Compile/SOAP/Extension.pm

filter: Statementstmt 48.8% 21 / 43 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 46.1% 6 / 13 Podpod 88.8% 8 / 9 totaltotal 44.3% 35 / 79 CC 15 SCAR 22.6
CC
15
Cov
37%
wsdl11Init
12.0
soap11OperationInit
12.0
soap11ClientWrapper
12.0
CRAP 9.6
« lib/XML/Compile/Transport.pm ↑ Summary lib/XML/Compile/SOAP11.pm »
1 # Copyrights 2007-2022 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.03.
5 # This code is part of distribution XML-Compile-SOAP. 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::SOAP::Extension;
10 7 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 7 $VERSION = '3.28';
12  
13  
14 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 7 ▶use Log::Report 'xml-compile-soap';
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 7 my @ext;
20  
21  
22 2 ▶sub new($@) { my $class = shift; (bless {}, $class)->init( {@_} ) }
Subroutine new: called CC=1 SCAR=0.0
Pod documented
23  
24 sub init($)
25 2 ▶{ my $self = shift;
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
26 2 trace "loading extension ".ref $self;
27 2 push @ext, $self;
28 2 $self;
29 }
30  
31 #--------
32  
33 ### For all methods named below: when called on an object, it is the stub
34 ### for the extension. Only when called as class method, it will walk all
35 ### extension objects.
36  
37 sub wsdl11Init($$)
38 0 ▶{ ref shift and return;
Subroutine wsdl11Init: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
ref shift() and return 0 0 0
39 0 $_->wsdl11Init(@_) for @ext;
40 }
41  
42 #--------
43  
44 sub soap11OperationInit($$)
45 0 ▶{ ref shift and return;
Subroutine soap11OperationInit: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
ref shift() and return 0 0 0
46 0 $_->soap11OperationInit(@_) for @ext;
47 }
48  
49  
50 sub soap11ClientWrapper($$$)
51 0 ▶{ ref shift and return $_[1];
Subroutine soap11ClientWrapper: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
ref shift() and return $_[1] 0 0 0
52 0 my ($op, $call, $args) = @_;
53 0 $call = $_->soap11ClientWrapper($op, $call, $args) for @ext;
54 0 $call;
55 }
56  
57  
58 sub soap11HandlerWrapper($$$)
59 0 ▶{ my ($thing, $op, $cb, $args) = @_;
Subroutine soap11HandlerWrapper: not called CC=3 SCAR=24.8
Pod documented
60 0 ▶ ref $thing and return $cb;
Branch: 1 branch
BranchTrueFalseTotal
ref $thing and return $cb 0 0 0
61 0 $cb = $_->soap11HandlerWrapper($op, $cb, $args) for @ext;
62 0 $cb;
63 }
64  
65 #--------
66  
67 sub soap12OperationInit($$)
68 0 ▶{ ref shift and return;
Subroutine soap12OperationInit: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
ref shift() and return 0 0 0
69 0 $_->soap12OperationInit(@_) for @ext;
70 }
71  
72  
73 sub soap12ClientWrapper($$$)
74 0 ▶{ ref shift and return $_[1];
Subroutine soap12ClientWrapper: not called CC=3 SCAR=24.8
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
ref shift() and return $_[1] 0 0 0
75 0 my ($op, $call, $args) = @_;
76 0 $call = $_->soap12ClientWrapper($op, $call, $args) for @ext;
77 0 $call;
78 }
79  
80  
81 sub soap12HandlerWrapper($$$)
82 0 ▶{ my ($thing, $op, $cb, $args) = @_;
Subroutine soap12HandlerWrapper: not called CC=3 SCAR=24.8
Pod documented
83 0 ▶ ref $thing and return $cb;
Branch: 1 branch
BranchTrueFalseTotal
ref $thing and return $cb 0 0 0
84 0 $cb = $_->soap12HandlerWrapper($op, $cb, $args) for @ext;
85 0 $cb;
86 }
87  
88  
89 7 1;
« lib/XML/Compile/Transport.pm ↑ Summary lib/XML/Compile/SOAP11.pm »