TT/DBFile/Array.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ## -*- Mode: CPerl -*-
2 ## File: Lingua::TT::DBFile::Array.pm
3 ## Author: Bryan Jurish <TT/IO.pm>
4 ## Descript: TT I/O: Berkely DB: tied files: arrays (using DB_RECNO)
5  
6  
7 package Lingua::TT::DBFile::Array;
8 use Lingua::TT::DBFile;
9 use Carp;
10 use strict;
11  
12 ##==============================================================================
13 ## Globals & Constants
14  
15 our @ISA = qw(Lingua::TT::DBFile);
16  
17 ##==============================================================================
18 ## Constructors etc.
19  
20 ## $dbf = CLASS_OR_OBJECT->new(%opts)
21 ## + %opts, %$doc:
22 ## ##-- overrides
23 ## type => $type, ##-- one of 'HASH', 'BTREE', 'RECNO' (default: 'RECNO')
24 ## ##
25 ## ##-- user options
26 ## file => $directory, ##-- default: undef (none)
27 ## mode => $mode, ##-- default: 0644
28 ## flags => $flags, ##-- default: O_RDWR|O_CREAT
29 ## #type => $type, ##-- one of 'HASH', 'BTREE', 'RECNO' (default: 'RECNO')
30 ## dbinfo => \%dbinfo, ##-- default: "DB_File::${type}INFO"->new();
31 ## dbopts => \%opts, ##-- db options (e.g. cachesize,bval,...) -- defaults to none (uses DB_File defaults)
32 ## ##
33 ## ##-- low-level data
34 ## data => $thingy, ##-- tied data (hash or array)
35 ## tied => $ref, ##-- reference returned by tie()
36 sub new {
37 my $that = shift;
38 return $that->SUPER::new(type=>'RECNO',@_);
39 }
40  
41  
42 ##==============================================================================
43 ## Footer
44 1;
45  
46 __END__