5 use Test::More tests => 2;
6 use File::Temp qw( tempfile tempdir );
7 use Fcntl qw( :flock );
11 my $dir = tempdir( CLEANUP => 1 );
12 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
14 my $db = DBM::Deep->new(
16 type => DBM::Deep->TYPE_HASH
24 for ( 0 .. $max_keys ) {
25 $db->put( "hello $_" => "there " . $_ * 2 );
29 for ( 0 .. $max_keys ) {
31 unless ( $db->get( "hello $_" ) eq "there " . $_ * 2 ) {
35 is( $count, $max_keys, "We read $count keys" );