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-2020 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.02.
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   7 use vars '$VERSION';
  1         3  
  1         67  
11             $VERSION = '1.00';
12              
13 1     1   6 use base 'User::Identity::Collection';
  1         2  
  1         101  
14              
15 1     1   7 use strict;
  1         1  
  1         37  
16 1     1   7 use warnings;
  1         2  
  1         44  
17              
18 1     1   524 use Mail::Identity;
  1         3  
  1         156  
19              
20              
21             sub new(@)
22 1     1 1 3 { my $class = shift;
23 1         8 $class->SUPER::new(name => 'emails', @_);
24             }
25              
26             sub init($)
27 1     1 0 3 { my ($self, $args) = @_;
28 1   50     10 $args->{item_type} ||= 'Mail::Identity';
29              
30 1         12 $self->SUPER::init($args);
31             }
32              
33             sub type() { 'mailgroup' }
34              
35             1;
36