]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
Rename Variable::Magic::TestDieRequired to Variable::Magic::TestScopeEnd
authorVincent Pit <vince@profvince.com>
Sun, 19 Apr 2009 16:07:09 +0000 (18:07 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 19 Apr 2009 16:07:09 +0000 (18:07 +0200)
MANIFEST
t/17-ctl.t
t/lib/Variable/Magic/TestScopeEnd.pm [moved from t/lib/Variable/Magic/TestDieRequired.pm with 70% similarity]

index dadd63aaae5c8f0bd59f57d6a71763c454c70213..dafdfe69bb85eade1d86f14283ee6348bb644294 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -43,6 +43,6 @@ t/92-pod-coverage.t
 t/95-portability-files.t
 t/99-kwalitee.t
 t/lib/Variable/Magic/TestDestroyRequired.pm
-t/lib/Variable/Magic/TestDieRequired.pm
+t/lib/Variable/Magic/TestScopeEnd.pm
 t/lib/Variable/Magic/TestValue.pm
 t/lib/Variable/Magic/TestWatcher.pm
index ce22ea6d93d37405d1c39e6943848486fefd9b76..7e2e7d8440c4bc3f0e5bbb1313c19d7b04b1ccf5 100644 (file)
@@ -76,6 +76,6 @@ eval q{BEGIN {
 like $@, qr/pepperoni/, 'die in len callback in BEGIN';
 
 use lib 't/lib';
-eval "use Variable::Magic::TestDieRequired";
+eval "use Variable::Magic::TestScopeEnd";
 
-like $@, qr/turnip/, 'die in required with localized hash gets the right error message';
+like $@, qr/turnip/, 'die in BEGIN in require triggers hints hash destructor';
similarity index 70%
rename from t/lib/Variable/Magic/TestDieRequired.pm
rename to t/lib/Variable/Magic/TestScopeEnd.pm
index 50792b140d8f726e8146faeba7f79facca80aa93..1e08a8e2b0101eca0344fe8ed1874ec9502c13ca 100644 (file)
@@ -1,4 +1,4 @@
-package Variable::Magic::TestDieRequired;
+package Variable::Magic::TestScopeEnd;
 
 use Test::More;
 
@@ -18,7 +18,7 @@ sub hook (&) {
 }
 
 BEGIN {
- hook { pass 'in Variable::Magic::TestRequired hook' };
+ hook { pass 'in hints hash destructor' };
  die 'turnip';
 }