Fluentd/Role/HasAConnection.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
_default_port
2.0
_build_connection_manager
2.0
BEGIN
2.0
CRAP 2.0
1 package Message::Passing::Fluentd::Role::HasAConnection;
2  
3 use Moo::Role;
4 use namespace::autoclean;
5 use Message::Passing::Fluentd::ConnectionManager;
6  
7 with qw(
8 Message::Passing::Role::HasAConnection
9 Message::Passing::Role::HasHostnameAndPort
10 );
11  
12 sub _default_port { shift->connection_manager->_default_port }
13  
14 sub _build_connection_manager {
15 my $self = shift;
16 Message::Passing::Fluentd::ConnectionManager->new(
17 map { $_ => $self->$_ } qw(hostname port)
18 );
19 }
20  
21 1;