lib/DR/Tnt/Client/Sync.pm

filter: Statementstmt 66.6% 18 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 2 totaltotal 58.9% 23 / 39 SCAR 8.0
CC
2
Cov
62%
request
6.0
driver
2.0
__ANON__
2.0
CRAP 2.2
« lib/DR/Tnt.pm ↑ Summary lib/DR/Tnt/Client/Coro.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DR::Tnt::Client::Sync;
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $Carp::Internal{ (__PACKAGE__) }++;
8 1 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub driver { 'sync' }
Subroutine driver: not called CC=1 SCAR=6.9
Pod undocumented
11  
12 sub request {
13 0 ▶ my ($self, @args) = @_;
Subroutine request: not called CC=2 SCAR=17.9
Pod undocumented
14  
15 0 my ($status, $message, $resp);
16 0 ▶ my $cb = sub { ($status, $message, $resp) = @_ };
Subroutine __ANON__: not called CC=1 SCAR=6.9
17
18 0 my $m = $args[0];
19  
20 0 ▶ @args = ('select', @args[1, 2, 3], 1, 0, 'EQ') if $m eq 'get';
Branch: 1 branch
BranchTrueFalseTotal
if $m eq "get" 0 0 0
21  
22 0 $self->_fcb->request(@args, $cb);
23
24 0 return $self->_response($m, $status, $message, $resp);
25 }
26  
27 1 with 'DR::Tnt::Client::Role::LikeSync';
28  
29 1 __PACKAGE__->meta->make_immutable;
« lib/DR/Tnt.pm ↑ Summary lib/DR/Tnt/Client/Coro.pm »