Passing/Role/HasUsernameAndPassword.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 15 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Passing/Role/HasTimeoutAndReconnectAfter.pm ↑ Summary Passing/Role/Output.pm »
1 package Message::Passing::Role::HasUsernameAndPassword;
2 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use MooX::Types::MooseLike::Base qw/ Str /;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 foreach my $name (qw/ username password /) {
7 2 has $name => (
8 is => 'ro',
9 isa => Str,
10 required => 1,
11 );
12 }
13  
14 1 1;
15  
16 =head1 NAME
17  
18 Message::Passing::Role::HasUsernameAndPassword - common username and password attributes
19  
20 =head1 SYNOPSIS
21  
22 package Message::Passing::Output::MyOutput;
23 use Moo;
24 use namespace::clean -except => 'meta';
25  
26 with 'Message::Passing::Role::HasUsernameAndPassword';
27  
28 =head1 METHODS
29  
30 =head2 username
31  
32 The username for a connection. Required, Str.
33  
34 =head2 password
35  
36 The password for a connection. Required, Str.
37  
38 =head1 AUTHOR, COPYRIGHT AND LICENSE
39  
40 See L<Message::Passing>.
41  
42 =cut
« Passing/Role/HasTimeoutAndReconnectAfter.pm ↑ Summary Passing/Role/Output.pm »