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             # This code is part of Perl distribution User-Identity version 4.00.
2             # The POD got stripped from this file by OODoc version 3.05.
3             # For contributors see file ChangeLog.
4              
5             # This software is copyright (c) 2003-2025 by Mark Overmeer.
6              
7             # This is free software; you can redistribute it and/or modify it under
8             # the same terms as the Perl 5 programming language system itself.
9             # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10              
11              
12             package User::Identity::Collection::Emails;{
13             our $VERSION = '4.00';
14             }
15              
16 1     1   7 use parent 'User::Identity::Collection';
  1         1  
  1         6  
17              
18 1     1   75 use strict;
  1         1  
  1         20  
19 1     1   2 use warnings;
  1         1  
  1         51  
20              
21 1     1   3 use Log::Report 'user-identity';
  1         1  
  1         7  
22              
23 1     1   1023 use Mail::Identity ();
  1         3  
  1         88  
24              
25             #--------------------
26              
27             sub new(@)
28 1     1 1 2 { my $class = shift;
29 1         8 $class->SUPER::new(name => 'emails', @_);
30             }
31              
32             sub init($)
33 1     1 0 1 { my ($self, $args) = @_;
34 1   50     7 $args->{item_type} ||= 'Mail::Identity';
35 1         5 $self->SUPER::init($args);
36             }
37              
38             sub type() { 'mailgroup' }
39              
40             1;