File Coverage

blib/lib/Message/Passing/Redis/Role/HasAConnection.pm
Criterion Covered Total %
statement 4 6 66.6
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 6 8 75.0


line stmt bran cond sub pod time code
1             package Message::Passing::Redis::Role::HasAConnection;
2 1     1   239676 use Moo::Role;
  1         2  
  1         11  
3 1     1   1872 use Message::Passing::Redis::ConnectionManager;
  0            
  0            
4             use namespace::clean -except => 'meta';
5              
6             with qw/
7             Message::Passing::Role::HasAConnection
8             Message::Passing::Role::HasHostnameAndPort
9             /;
10              
11             sub _default_port { 6379 }
12              
13             sub _build_connection_manager {
14             my $self = shift;
15             Message::Passing::Redis::ConnectionManager->new(map { $_ => $self->$_() }
16             qw/ hostname port /
17             );
18             }
19              
20             1;
21