AMQP/Role/HasAConnection.pm

filter: Statementstmt 70.0% 14 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod n/a totaltotal 58.6% 17 / 29 CC 1 SCAR 5.1
CC
1
Cov
70%
_default_port
2.0
__ANON__
2.0
__ANON__
2.0
CRAP 1.7
« AMQP/Role/DeclaresQueue.pm ↑ Summary Input/AMQP.pm »
1 package Message::Passing::AMQP::Role::HasAConnection;
2 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Types::Standard qw( Bool Str );
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 with qw/
7 Message::Passing::Role::HasAConnection
8 Message::Passing::Role::HasHostnameAndPort
9 Message::Passing::Role::HasUsernameAndPassword
10 /;
11  
12 0 ▶sub _default_port { 5672 }
Subroutine _default_port: not called CC=1 SCAR=6.9
13  
14 has tls => (
15 is => 'ro',
16 isa => Bool,
17 0 ▶ default => sub { 0 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
18 1 );
19  
20 has vhost => (
21 is => 'ro',
22 isa => Str,
23 0 ▶ default => sub { '/' },
Subroutine __ANON__: not called CC=1 SCAR=6.9
24 1 );
25  
26 has verbose => (
27 is => 'ro',
28 isa => Bool,
29 0 ▶ default => sub { 0 },
Subroutine __ANON__: not called CC=1 SCAR=6.9
30 1 );
31  
32 0 ▶sub _connection_manager_class { 'Message::Passing::AMQP::ConnectionManager' }
Subroutine _connection_manager_class: not called CC=1 SCAR=6.9
33 0 ▶sub _connection_manager_attributes { [qw/ username password hostname port tls vhost verbose /] }
Subroutine _connection_manager_attributes: not called CC=1 SCAR=6.9
34  
35 1 1;
36  
37 =head1 NAME
38  
39 Message::Passing::AMQP::Role::HasAConnection - Implements the Message::Passing::Role::HasAConnection interface..
40  
41 =head1 ATTRIBUTES
42  
43 =head2 tls
44  
45 Gets passed to L<Message::Passing::AMQP::ConnectionManager>, defaults to false.
46  
47 =head2 vhost
48  
49 Gets passed to L<Message::Passing::AMQP::ConnectionManager>, defaults to '/'.
50  
51 =head2 verbose
52  
53 Gets passed to L<Message::Passing::AMQP::ConnectionManager>, defaults to false.
54  
55 =head1 AUTHOR, COPYRIGHT AND LICENSE
56  
57 See L<Message::Passing::AMQP>.
58  
59 =cut
« AMQP/Role/DeclaresQueue.pm ↑ Summary Input/AMQP.pm »