blib/lib/IPC/Manager/Service/Echo.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 57.1% 4 / 7 Podpod 33.3% 1 / 3 totaltotal 68.9% 20 / 29 CC 1 SCAR 3.6
CC
1
Cov
79%
pid
2.0
set_pid
2.0
handle_request
2.0
CRAP 1.4
« blib/lib/IPC/Manager/Service/Peer.pm ↑ Summary blib/lib/IPC/Manager/Serializer/JSON.pm »
1 package IPC::Manager::Service::Echo;
2 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 our $VERSION = '0.000036';
6  
7 8 use Object::HashBase qw{
8 <name
9 <orig_io
10 <ipcm_info
11 <redirect
12  
13 use_posix_exit
14 intercept_errors
15 watch_pids
16 8 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 8 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 0 ▶sub pid { $_[0]->{pid} }
Subroutine pid: not called CC=1 SCAR=6.9
Pod undocumented
21 0 ▶sub set_pid { $_[0]->{pid} = $_[1] }
Subroutine set_pid: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 sub handle_request {
24 0 ▶ my ($self, $req, $msg) = @_;
Subroutine handle_request: not called CC=1 SCAR=6.9
Pod documented
25 0 return "echo: $req->{request}";
26 }
27  
28 8 with 'IPC::Manager::Role::Service';
29  
30 8 1;
31  
32 __END__
« blib/lib/IPC/Manager/Service/Peer.pm ↑ Summary blib/lib/IPC/Manager/Serializer/JSON.pm »