File Coverage

blib/lib/Dist/Zilla/Stash/User.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             package Dist::Zilla::Stash::User 6.030;
2             # ABSTRACT: a stash of user name and email
3              
4 3     3   4239 use Moose;
  3         9  
  3         41  
5              
6 3     3   20019 use Dist::Zilla::Pragmas;
  3         8  
  3         35  
7              
8 3     3   30 use namespace::autoclean;
  3         19  
  3         45  
9              
10             has name => (
11             is => 'ro',
12             isa => 'Str',
13             required => 1,
14             );
15              
16             has email => (
17             is => 'ro',
18             isa => 'Str',
19             required => 1,
20             );
21              
22             sub authors {
23 1     1 0 14 my ($self) = @_;
24 1         35 return [ sprintf "%s <%s>", $self->name, $self->email ];
25             }
26              
27             with 'Dist::Zilla::Role::Stash::Authors';
28             __PACKAGE__->meta->make_immutable;
29             1;
30              
31             __END__
32              
33             =pod
34              
35             =encoding UTF-8
36              
37             =head1 NAME
38              
39             Dist::Zilla::Stash::User - a stash of user name and email
40              
41             =head1 VERSION
42              
43             version 6.030
44              
45             =head1 PERL VERSION
46              
47             This module should work on any version of perl still receiving updates from
48             the Perl 5 Porters. This means it should work on any version of perl released
49             in the last two to three years. (That is, if the most recently released
50             version is v5.40, then this module should work on both v5.40 and v5.38.)
51              
52             Although it may work on older versions of perl, no guarantee is made that the
53             minimum required version will not be increased. The version may be increased
54             for any reason, and there is no promise that patches will be accepted to lower
55             the minimum required perl.
56              
57             =head1 AUTHOR
58              
59             Ricardo SIGNES 😏 <cpan@semiotic.systems>
60              
61             =head1 COPYRIGHT AND LICENSE
62              
63             This software is copyright (c) 2023 by Ricardo SIGNES.
64              
65             This is free software; you can redistribute it and/or modify it under
66             the same terms as the Perl 5 programming language system itself.
67              
68             =cut