3 use Test::More tests => 5;
4 use File::Temp qw( tempfile tempdir );
5 use Fcntl qw( :flock );
9 my $dir = tempdir( CLEANUP => 1 );
11 use Scalar::Util qw( reftype );
14 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
18 my $obj = tie %hash, 'DBM::Deep', $filename;
19 isa_ok( $obj, 'DBM::Deep' );
20 is( reftype( $obj ), 'HASH', "... and its underlying representation is an HASH" );
24 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
28 my $obj = tie @array, 'DBM::Deep', $filename;
29 isa_ok( $obj, 'DBM::Deep' );
30 is( reftype( $obj ), 'HASH', "... and its underlying representation is an HASH" );