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 69     69   1023 use strict;
  69         165  
  69         3361  
4 69     69   357 use warnings;
  69         160  
  69         4824  
5 69     69   1518 use 5.018;
  69         265  
6              
7             our $VERSION = '0.001';
8              
9 69     69   762 use parent 'Async::Redis::Error';
  69         446  
  69         888  
10              
11 1     1 1 380 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__