Serialized/Client/UNIX.pm

filter: Statementstmt 84.0% 21 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 80.0% 28 / 35 CC 2 SCAR 8.1
CC
2
Cov
78%
new
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Serialized/Client/SSL.pm ↑ Summary Serialized/Client/NegKrb5.pm »
1 package RPC::Serialized::Client::UNIX;
2 {
3 1 $RPC::Serialized::Client::UNIX::VERSION = '1.123630';
4 }
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use base 'RPC::Serialized::Client';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use IO::Socket::UNIX;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use RPC::Serialized::Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use RPC::Serialized::Exceptions;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
16 0 my $class = shift;
17 0 my $params = RPC::Serialized::Config->parse(@_);
18  
19 0 ▶ my $socket = IO::Socket::UNIX->new($params->io_socket_unix)
Branch: 1 branch
BranchTrueFalseTotal
my $socket = "IO::Socket::UNIX"->new($params->io_socket_unix) or throw_system("Failed to create socket: $!") 0 0 0
20 or throw_system "Failed to create socket: $!";
21  
22 0 return $class->SUPER::new(
23 $params, {rpc_serialized => {ifh => $socket, ofh => $socket}},
24 );
25 }
26  
27 1 1;
28  
29 # ABSTRACT: UNIX domain socket RPC client
30  
31  
32 __END__
« Serialized/Client/SSL.pm ↑ Summary Serialized/Client/NegKrb5.pm »