Remote/Proxy.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 37.5% 3 / 8 Conditioncond 25.0% 1 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 48.7% 20 / 41 CC 7 SCAR 17.6
CC
7
Cov
50%
AUTOLOAD
7.6
AUTOLOAD
7.6
BEGIN
1.0
CRAP 5.8
« Remote/Connector/SSH.pm ↑ Summary Remote/ReadChannel.pm »
1 package Object::Remote::Proxy;
2  
3 30 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 108 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: called CC=4 SCAR=20.3
7 0 ▶ my $self = shift;
Subroutine AUTOLOAD: not called CC=4 SCAR=20.3
8 0 (my $method) = (our $AUTOLOAD =~ /([^:]+)$/);
9 0 my $to_fire = $self->{method};
10 0 ▶ if ((caller(0)||'') eq 'start') {
Branch: 2 branches
BranchTrueFalseTotal
if ((caller 0 || "") eq "start") 0 0 0
if ((caller 0 || "") eq "start") 4 104 108
Condition25%1/4
caller 0 || ''
l!l
00
caller 0 || ''
l!l
1080
MC/DC0%0/1
caller 0 || ''
caller 0
MC/DC0%0/1
caller 0 || ''
caller 0
Truth table0%0/2
A
A= caller 0
Aresult
11
00
Truth table50%1/2
A
A= caller 0
Aresult
11
00
11 0 $to_fire = "start::${to_fire}";
12 }
13  
14 0 ▶ unless ($self->{remote}->is_valid) {
Branch: 2 branches
BranchTrueFalseTotal
unless ($self->{"remote"}->is_valid) 0 0 0
unless ($self->{"remote"}->is_valid) 0 108 108
15 0 croak "Attempt to use Object::Remote::Proxy backed by an invalid handle";
16 }
17  
18 0 $self->{remote}->$to_fire($method => @_);
19 }
20  
21 0 ▶sub DESTROY { }
Subroutine DESTROY: not called CC=1 SCAR=0.0
22  
23 1;
« Remote/Connector/SSH.pm ↑ Summary Remote/ReadChannel.pm »