File Coverage

blib/lib/Data/Hive/PathPacker.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 4     4   1489 use strict;
  4         7  
  4         105  
2 4     4   17 use warnings;
  4         7  
  4         166  
3             package Data::Hive::PathPacker 1.015;
4             # ABSTRACT: a thing that converts paths to strings and then back
5              
6             #pod =head1 DESCRIPTION
7             #pod
8             #pod Data::Hive::PathPacker classes are used by some L classes to convert hive paths to strings so that deep hives can be stored in flat storage.
9             #pod
10             #pod Path packers must implement two methods:
11             #pod
12             #pod =method pack_path
13             #pod
14             #pod my $str = $packer->pack_path( \@path );
15             #pod
16             #pod This method is passed an arrayref of path parts and returns a string to be used
17             #pod as a key in flat storage for the path.
18             #pod
19             #pod =method unpack_path
20             #pod
21             #pod my $path_arrayref = $packer->unpack_path( $str );
22             #pod
23             #pod This method is passed a string and returns an arrayref of path parts
24             #pod represented by the string.
25             #pod
26             #pod =cut
27              
28             1;
29              
30             __END__