File Coverage

blib/lib/User/Identity/Collection/Locations.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition 1 2 50.0
subroutine 8 8 100.0
pod 1 2 50.0
total 34 36 94.4


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::Locations;
10 1     1   70462 use vars '$VERSION';
  1         11  
  1         73  
11             $VERSION = '1.00';
12              
13 1     1   8 use base 'User::Identity::Collection';
  1         2  
  1         467  
14              
15 1     1   8 use strict;
  1         2  
  1         23  
16 1     1   5 use warnings;
  1         2  
  1         25  
17              
18 1     1   459 use User::Identity::Location;
  1         3  
  1         31  
19              
20 1     1   7 use Carp qw/croak/;
  1         2  
  1         167  
21              
22              
23             sub new(@)
24 1     1 1 3 { my $class = shift;
25 1         9 $class->SUPER::new(locations => @_);
26             }
27              
28             sub init($)
29 1     1 0 4 { my ($self, $args) = @_;
30 1   50     9 $args->{item_type} ||= 'User::Identity::Location';
31              
32 1         12 $self->SUPER::init($args);
33              
34 1         2 $self;
35             }
36              
37             sub type() { 'whereabouts' }
38              
39             1;