File Coverage

blib/lib/User/Identity/Collection/Locations.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::Locations;{
13             our $VERSION = '4.00';
14             }
15              
16 1     1   176006 use parent 'User::Identity::Collection';
  1         353  
  1         8  
17              
18 1     1   44 use strict;
  1         2  
  1         14  
19 1     1   3 use warnings;
  1         1  
  1         84  
20              
21 1     1   5 use Log::Report 'user-identity';
  1         1  
  1         5  
22              
23 1     1   629 use User::Identity::Location ();
  1         3  
  1         101  
24              
25             #--------------------
26              
27             sub new(@)
28 1     1 1 2 { my $class = shift;
29 1         7 $class->SUPER::new(locations => @_);
30             }
31              
32             sub init($)
33 1     1 0 2 { my ($self, $args) = @_;
34 1   50     6 $args->{item_type} ||= 'User::Identity::Location';
35 1         6 $self->SUPER::init($args);
36             }
37              
38             sub type() { 'whereabouts' }
39              
40             1;