Redis/Server/Connection.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 72.2% 26 / 36 CC 2 SCAR 8.1
CC
2
Cov
69%
AUTOLOAD
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Redis/Multi.pm ↑ Summary job-queue.pl »
1 package Net::Async::Redis::Server::Connection;
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 = '2.001'; # VERSION
9  
10 =head1 NAME
11  
12 Net::Async::Redis::Server::Connection - represents a single connection to a server
13  
14 =head1 DESCRIPTION
15  
16 Best to wait until the 2.000 release for this one.
17  
18 =cut
19  
20 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 ▶use Net::Async::Redis::Commands;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 sub AUTOLOAD {
26 0 ▶ my ($self, @args) = @_;
Subroutine AUTOLOAD: not called CC=2 SCAR=17.9
27 0 my ($method) = our $AUTOLOAD =~ /::([^:]+)$/;
28 0 my $cmd = uc $method;
29 0 ▶ if(Net::Async::Redis::Commands->can($method)) {
Branch: 1 branch
BranchTrueFalseTotal
if ("Net::Async::Redis::Commands"->can($method)) 0 0 0
30 0 $cmd =~ tr/_/ /;
31 0 return $self->request->reply(ERR => 'Unimplemented command ' . $cmd);
32 }
33 0 return $self->request->reply(ERR => 'Unknown command ' . $cmd);
34 }
35  
36 1 1;
37  
38  
« Redis/Multi.pm ↑ Summary job-queue.pl »