Simple/AnyRemote.pm

filter: Statementstmt 57.1% 12 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 57.1% 16 / 28 CC 2 SCAR 11.0
CC
2
Cov
52%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Simple/CallHandler.pm ↑ Summary Simple/AnyWhere.pm »
1 package RPC::Simple::AnyRemote;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use vars qw(@ISA $VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use RPC::Simple::AnyWhere ;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # Items to export into callers namespace by default. Note: do not export
8 # names by default without a very good reason. Use EXPORT_OK instead.
9 # Do not simply export all your public functions/methods/constants.
10  
11 1 ( $VERSION ) = '$Revision: 1.6 $ ' =~ /\$Revision:\s+([^\s]+)/;
12  
13 1 @ISA = qw(RPC::Simple::AnyWhere) ;
14  
15 # Preloaded methods go here.
16  
17 # Autoload methods go after =cut, and are processed by the autosplit program.
18  
19 # see loadspecs for other names
20 sub new
21 0 ▶ {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
22 0 my $type = shift ;
23 0 my $self = {} ;
24  
25 0 print "creating new $type\n";
26 0 $self->{_twinHandle} = shift ;
27 0 $self->{origDir} = $ENV{'PWD'} ;
28  
29 0 bless $self,$type ;
30  
31 # construct an array of existing remote functions and store it in the
32 # child class name space (rude but necessary behavior)
33 0 ▶ unless (defined $SUPER::_RPC_SUBS{ref($self)})
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $SUPER::_RPC_SUBS{ref $self}) 0 0 0
34 {
35 0 $self->_searchSubs(ref($self)) ;
36 }
37  
38 0 return $self ;
39 }
40  
41  
42 1 1;
43  
44 __END__
« Simple/CallHandler.pm ↑ Summary Simple/AnyWhere.pm »