Passing/Role/HasHostnameAndPort.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 16 / 16 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Passing/Role/HasErrorChain.pm ↑ Summary Passing/Role/HasTimeoutAndReconnectAfter.pm »
1 package Message::Passing::Role::HasHostnameAndPort;
2 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use MooX::Types::MooseLike::Base qw/ Str Int /;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 requires '_default_port';
7  
8 2 has hostname => (
9 is => 'ro',
10 isa => Str,
11 required => 1,
12 );
13  
14 2 has port => (
15 is => 'ro',
16 isa => Int,
17 builder => '_default_port',
18 );
19  
20 2 1;
21  
22 =head1 NAME
23  
24 Message::Passing::Role::HasHostnameAndPort
25  
26 =head1 DESCRIPTION
27  
28 Adds a C<hostname> and a C<port> attributes to your class.
29  
30 =head1 METHODS
31  
32 =head2 hostname
33  
34 =head2 port
35  
36 =head1 AUTHOR, COPYRIGHT AND LICENSE
37  
38 See L<Message::Passing>.
39  
40 =cut
« Passing/Role/HasErrorChain.pm ↑ Summary Passing/Role/HasTimeoutAndReconnectAfter.pm »