Redis/Cluster/Replica.pm

filter: Statementstmt 68.7% 22 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 41.6% 5 / 12 Podpod 0.0% 0 / 4 totaltotal 56.2% 27 / 48 CC 1 SCAR 3.0
CC
1
Cov
69%
__ANON__
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.3
« Redis/Server.pm ↑ Summary
1 package Net::Async::Redis::Cluster::Replica;
2 5 ▶use Object::Pad;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 class Net::Async::Redis::Cluster::Replica;
4  
5 5 our $VERSION = '6.006'; # VERSION
6  
7 5 ▶use Scalar::Util qw(refaddr);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use Log::Any qw($log);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 use overload
12 0 ▶ '""' => sub { 'NaRedis::Cluster::Replica[id=' . shift->id . ']' },
Subroutine BEGIN: called CC=1 SCAR=1.2
Subroutine __ANON__: not called CC=1 SCAR=6.9
13 0 ▶ '0+' => sub { refaddr(shift) },
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 ▶ bool => sub { 1 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
15 5 fallback => 1;
16  
17 0 ▶field $id:param:reader;
Subroutine id: not called CC=1 SCAR=2.6
Pod undocumented
18 0 ▶field $host:param:reader;
Subroutine host: not called CC=1 SCAR=2.6
Pod undocumented
19 0 ▶field $port:param:reader;
Subroutine port: not called CC=1 SCAR=2.6
Pod undocumented
20  
21 0 ▶method host_port { join ':', $host, $port }
Subroutine host_port: not called CC=1 SCAR=1.2
Pod undocumented
22  
23 5 1;
24 __END__
« Redis/Server.pm ↑ Summary