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