X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F21_tie_access.t;h=faeaa2f7875cde6258dce55b1d0e495a95196c63;hb=67e9b86f22e8dacf29904f0163be3b23fae91074;hp=4059fd40021da44580f2463dc25cf78319cd71f6;hpb=45f047f8f43dbfd86f43b2a95913438be2089889;p=dbsrgits%2FDBM-Deep.git diff --git a/t/21_tie_access.t b/t/21_tie_access.t index 4059fd4..faeaa2f 100644 --- a/t/21_tie_access.t +++ b/t/21_tie_access.t @@ -1,8 +1,7 @@ -## -# DBM::Deep Test -## use strict; -use Test::More tests => 7; +use warnings FATAL => 'all'; + +use Test::More; use Test::Exception; use t::common qw( new_fh ); @@ -16,7 +15,7 @@ my ($fh, $filename) = new_fh(); $hash{key1} = 'value'; is( $hash{key1}, 'value', 'Set and retrieved key1' ); - tied( %hash )->_get_self->_storage->close( tied( %hash )->_get_self ); + tied( %hash )->_get_self->_engine->storage->close( tied( %hash )->_get_self ); } { @@ -27,7 +26,7 @@ my ($fh, $filename) = new_fh(); is( keys %hash, 1, "There's one key so far" ); ok( exists $hash{key1}, "... and it's key1" ); - tied( %hash )->_get_self->_storage->close( tied( %hash )->_get_self ); + tied( %hash )->_get_self->_engine->storage->close( tied( %hash )->_get_self ); } { @@ -36,7 +35,7 @@ my ($fh, $filename) = new_fh(); file => $filename, type => DBM::Deep->TYPE_ARRAY, }; - tied( @array )->_get_self->_storage->close( tied( @array )->_get_self ); + tied( @array )->_get_self->_engine->storage->close( tied( @array )->_get_self ); } qr/DBM::Deep: File type mismatch/, "\$SIG_TYPE doesn't match file's type"; } @@ -50,5 +49,7 @@ my ($fh, $filename) = new_fh(); type => DBM::Deep->TYPE_HASH, }; } qr/DBM::Deep: File type mismatch/, "\$SIG_TYPE doesn't match file's type"; - $db->_get_self->_storage->close( $db->_get_self ); + $db->_get_self->_engine->storage->close( $db->_get_self ); } + +done_testing;