File Coverage

blib/lib/Async/Redis/Error/Connection.pm
Criterion Covered Total %
statement 14 15 93.3
branch n/a
condition n/a
subroutine 7 8 87.5
pod 4 4 100.0
total 25 27 92.5


line stmt bran cond sub pod time code
1             package Async::Redis::Error::Connection;
2              
3 76     76   745 use strict;
  76         155  
  76         2574  
4 76     76   312 use warnings;
  76         178  
  76         3381  
5 76     76   1067 use 5.018;
  76         216  
6              
7             our $VERSION = '0.001';
8              
9 76     76   917 use parent 'Async::Redis::Error';
  76         397  
  76         647  
10              
11 1     1 1 407 sub host { shift->{host} }
12 1     1 1 4 sub port { shift->{port} }
13 0     0 1 0 sub path { shift->{path} } # for unix sockets
14 1     1 1 3 sub reason { shift->{reason} }
15              
16             1;
17              
18             __END__