| 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
Condition25%1/4
caller 0 || ''
caller 0 || ''
MC/DC0%0/1
caller 0 || ''
caller 0
MC/DC0%0/1
caller 0 || ''
caller 0
Truth table0%0/2
A
A= caller 0
Truth table50%1/2
A
A= caller 0
| |||||||||||||||||||||||||||||||||||
| 11 | 0 | $to_fire = "start::${to_fire}"; | |||||||||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||
| 14 | 0 | ▶ | unless ($self->{remote}->is_valid) { | ||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||
| 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; | ||||||||||||||||||||||||||||||||||