Factory/SOAP/Lite.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 7 / 7 Podpod 100% 3 / 3 totaltotal 88.3% 38 / 43 CC 3 SCAR 5.4
CC
3
Cov
90%
new
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« Command/SOAP/Lite/Call.pm ↑ Summary Resource/SOAP/Lite.pm »
1 #*********************************************************************
2 #*** ResourcePool::Factory::SOAP::Lite
3 #*** Copyright (c) 2003 by Markus Winand <mws@fatalmind.com>
4 #*** $Id: Lite.pm,v 1.6 2011-01-31 13:49:38 mws Exp $
5 #*********************************************************************
6  
7 package ResourcePool::Factory::SOAP::Lite;
8  
9 3 ▶use vars qw($VERSION @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use ResourcePool::Resource::SOAP::Lite;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use ResourcePool::Factory;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 $VERSION = "1.0103";
15 3 push @ISA, "ResourcePool::Factory";
16  
17 10 ▶sub new($$) {
Subroutine new: called CC=3 SCAR=11.4
Pod documented
18 10 my $proto = shift;
19 10 ▶ my $class = ref($proto) || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
0100
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
20 10 my $self = $class->SUPER::new("SOAP::Lite");
21  
22 10 ▶ if (! exists($self->{PROXYURL})) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $self->{"PROXYURL"}) 10 0 10
23 10 $self->{PROXYURL} = shift;
24 }
25 10 bless($self, $class);
26 10 return $self;
27 }
28  
29 6 ▶sub create_resource($) {
Subroutine create_resource: called CC=1 SCAR=0.0
Pod documented
30 6 my ($self) = @_;
31 return ResourcePool::Resource::SOAP::Lite->new(
32 $self->{PROXYURL}
33 6 );
34 }
35  
36 2 ▶sub info($) {
Subroutine info: called CC=1 SCAR=0.0
Pod documented
37 2 my ($self) = @_;
38 2 return $self->{PROXYURL};
39 }
40  
41 3 1;
« Command/SOAP/Lite/Call.pm ↑ Summary Resource/SOAP/Lite.pm »