File Coverage

blib/lib/Hash/Case/Lower.pm
Criterion Covered Total %
statement 23 23 100.0
branch 1 2 50.0
condition n/a
subroutine 10 10 100.0
pod 0 1 0.0
total 34 36 94.4


line stmt bran cond sub pod time code
1             # Copyrights 2002-2018 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 Hash::Case. 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 Hash::Case::Lower;
10 1     1   51540 use vars '$VERSION';
  1         2  
  1         55  
11             $VERSION = '1.03';
12              
13 1     1   16 use base 'Hash::Case';
  1         2  
  1         407  
14              
15 1     1   6 use strict;
  1         5  
  1         15  
16 1     1   4 use warnings;
  1         1  
  1         19  
17              
18 1     1   4 use Log::Report 'hash-case';
  1         1  
  1         3  
19              
20              
21             sub init($)
22 3     3 0 5 { my ($self, $args) = @_;
23              
24 3         11 $self->SUPER::native_init($args);
25              
26 3 50       9 error __x"no options possible for {pkg}", pkg => __PACKAGE__
27             if keys %$args;
28              
29 3         7 $self;
30             }
31              
32 13     13   3056 sub FETCH($) { $_[0]->{lc $_[1]} }
33 6     6   1958 sub STORE($$) { $_[0]->{lc $_[1]} = $_[2] }
34 1     1   2278 sub EXISTS($) { exists $_[0]->{lc $_[1]} }
35 1     1   5 sub DELETE($) { delete $_[0]->{lc $_[1]} }
36              
37             1;