File Coverage

blib/lib/Data/Perl/Collection/Hash.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Data::Perl::Collection::Hash;
2             $Data::Perl::Collection::Hash::VERSION = '0.002011';
3             # ABSTRACT: Wrapping class for Perl's built in hash structure.
4              
5 9     9   65 use strictures 1;
  9         92  
  9         372  
6              
7 9     9   918 use Role::Tiny::With;
  9         21  
  9         2496  
8              
9             with 'Data::Perl::Role::Collection::Hash';
10              
11             1;
12              
13             =pod
14              
15             =encoding UTF-8
16              
17             =head1 NAME
18              
19             Data::Perl::Collection::Hash - Wrapping class for Perl's built in hash structure.
20              
21             =head1 VERSION
22              
23             version 0.002011
24              
25             =head1 SYNOPSIS
26              
27             use Data::Perl qw/hash/;
28              
29             my $hash = hash(a => 1, b => 2);
30              
31             $array->push(5);
32              
33             $hash->values; # (1, 2)
34              
35             $hash->set('foo', 'bar'); # (a => 1, b => 2, foo => 'bar')
36              
37             =head1 DESCRIPTION
38              
39             This class is a simple consumer of the L
40             role, which provides all functionality. You probably want to look there
41             instead.
42              
43             =head1 AUTHOR
44              
45             Matthew Phillips
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             This software is copyright (c) 2020 by Matthew Phillips .
50              
51             This is free software; you can redistribute it and/or modify it under
52             the same terms as the Perl 5 programming language system itself.
53              
54             =cut
55              
56             __END__