Module/Build/Service/memcached.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 2 / 7 Podpod n/a totaltotal 57.6% 15 / 26 CC 1 SCAR 4.6
CC
1
Cov
68%
_build_command
2.0
_build_listen
2.0
_build_path
2.0
CRAP 1.6
« Module/Build/Service/Base.pm ↑ Summary Module/Build/Service/clamd.pm »
1 package Module::Build::Service::memcached;
2 {
3 1 $Module::Build::Service::memcached::VERSION = '0.91';
4 }
5 # ABSTRACT: Service implementation for memcached
6  
7 1 ▶use Log::Any qw{$log};
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 extends 'Module::Build::Service::Base';
10 1 with 'Module::Build::Service::Fork';
11  
12  
13 0 ▶sub _build_command {
Subroutine _build_command: not called CC=1 SCAR=6.9
14 0 my ($self) = @_;
15 0 [$self->bin, "-l", $self->listen, "-p", $self->port, "-vv"];
16 }
17  
18  
19 1 has 'listen' => (is => 'lazy');
20 0 ▶sub _build_listen {'127.0.0.1'}
Subroutine _build_listen: not called CC=1 SCAR=6.9
21  
22  
23 0 ▶sub _build_path {['/usr/sbin', '/usr/local/sbin', '/usr/bin', '/usr/local/bin']}
Subroutine _build_path: not called CC=1 SCAR=6.9
24  
25  
26 has 'port' => (is => 'lazy',
27 0 ▶ isa => sub {$_[0] =~ m/^\d+$/});
Subroutine __ANON__: not called CC=1 SCAR=1.2
28 0 ▶sub _build_port {'50098'}
Subroutine _build_port: not called CC=1 SCAR=6.9
29  
30  
31 1 1;
32  
33 __END__
« Module/Build/Service/Base.pm ↑ Summary Module/Build/Service/clamd.pm »