File Coverage

blib/lib/User/Identity/Collection/Emails.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition 1 2 50.0
subroutine 7 7 100.0
pod 1 2 50.0
total 29 31 93.5


line stmt bran cond sub pod time code
1             # Copyrights 2003-2022 by [Mark Overmeer ].
2             # For other contributors see ChangeLog.
3             # See the manual pages for details on the licensing terms.
4             # Pod stripped from pm file by OODoc 2.03.
5             # This code is part of distribution User-Identity. Meta-POD processed with
6             # OODoc into POD and HTML manual-pages. See README.md
7             # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8              
9             package User::Identity::Collection::Emails;
10 1     1   8 use vars '$VERSION';
  1         2  
  1         74  
11             $VERSION = '1.01';
12              
13 1     1   6 use base 'User::Identity::Collection';
  1         1  
  1         127  
14              
15 1     1   6 use strict;
  1         3  
  1         23  
16 1     1   5 use warnings;
  1         2  
  1         52  
17              
18 1     1   545 use Mail::Identity;
  1         3  
  1         111  
19              
20              
21             sub new(@)
22 1     1 1 2 { my $class = shift;
23 1         9 $class->SUPER::new(name => 'emails', @_);
24             }
25              
26             sub init($)
27 1     1 0 11 { my ($self, $args) = @_;
28 1   50     12 $args->{item_type} ||= 'Mail::Identity';
29              
30 1         22 $self->SUPER::init($args);
31             }
32              
33             sub type() { 'mailgroup' }
34              
35             1;
36