| 1 | package Object::Remote::Connector::INET; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 11 | ▶ | use IO::Socket::INET; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 11 | ▶ | use Moo; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | 11 | with 'Object::Remote::Role::Connector'; | |||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | 11 | has socket_path => (is => 'ro', required => 1); | |||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||
| 10 | 0 | ▶ | sub _open2_for { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_open2_for: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||||||||||||||||
| 11 | 0 | ▶ | my ($self) = @_; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_open2_for: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||||||||||||||||
| 12 | 0 | my $path = $self->socket_path; | |||||||||||||||||||||||||||||||||||||||||
| 13 | 0 | ▶ | my $sock = IO::Socket::INET->new($path) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | or die "Couldn't open socket ${path}: $!"; | ||||||||||||||||||||||||||||||||||||||||||
| 15 | 0 | ($sock, $sock, undef); | |||||||||||||||||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||
| 18 | 11 | ▶ | no warnings 'once'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||
| 20 | 0 | ▶ | push @Object::Remote::Connection::Guess, sub { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=5 SCAR=34.0
| |||||||||||||||||||||||||||||||||||||||||||
| 21 | 0 | for ($_[0]) { | |||||||||||||||||||||||||||||||||||||||||
| 22 | 0 | ▶ | if (defined and !ref and /^.+:\d+$/) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
defined $_ and not ref $_ and /^.+:\d+$/
defined $_ and not ref $_
MC/DC0%0/3
defined $_ and not ref $_ and /^.+:\d+$/
defined $_
not ref $_
/^.+:\d+$/
Truth table0%0/4
A and not(B) and C
A= defined $_B= not ref $_C= /^.+:\d+$/
| |||||||||||||||||||||||||||||||||||||||||||
| 23 | 0 | my $socket = shift(@_); | |||||||||||||||||||||||||||||||||||||||||
| 24 | 0 | return __PACKAGE__->new(@_, socket_path => $socket); | |||||||||||||||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||||||||||||||||
| 26 | } | ||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||
| 28 | 11 | }; | |||||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||||||
| 30 | 11 | 1; | |||||||||||||||||||||||||||||||||||||||||