RecordStore/PopSilo.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::RecordStore::PopSilo;
2  
3 #
4 # I am a really simple silo. I live in a directory
5 # and have a single file that I work on.
6 #
7 # I may be changed by async processes, so a lot
8 # of my coordination and state is on the file system.
9 #
10 # You can init me by giving me a directory, a template and/or a size
11 # I will figure out the record size based on what you give me
12 # I will
13 #
14 # You can open me by giving a directory, then
15 # push data to me and I return its id
16 # get data from me after giving me its id
17 # pop data from me
18 # ask how many records I have
19 #
20  
21 use strict;
22 use warnings;
23  
24 use Fcntl qw( :flock SEEK_SET );
25 use File::Path qw(make_path remove_tree);