Redis/Server.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 73.6% 14 / 19 CC 1 SCAR 3.4
CC
1
Cov
79%
_add_to_loop
2.0
__ANON__
2.0
BEGIN
1.0
CRAP 1.4
« Redis/Commands.pm ↑ Summary Redis/Cluster/Replica.pm »
1 package Net::Async::Redis::Server;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent qw(IO::Async::Notifier);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '6.006'; # VERSION
9  
10 =head1 NAME
11  
12 Net::Async::Redis::Server - basic server implementation
13  
14 =head1 DESCRIPTION
15  
16 Best to wait until the 2.000 release for this one.
17  
18 =cut
19  
20 0 ▶sub _add_to_loop {
Subroutine _add_to_loop: not called CC=1 SCAR=6.9
21 0 my ($self, $loop) = @_;
22 $self->add_child(
23 my $listener = IO::Async::Listener->new(
24 0 ▶ on_stream => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
25 0 my ($server, $stream) = @_;
26  
27 }
28 )
29 0 );
30 }
31  
32 1 1;
33  
34 __END__
« Redis/Commands.pm ↑ Summary Redis/Cluster/Replica.pm »