[libmoosex-has-sugar-perl] 22/29: use namespace::clean in tests instead of namespace::autoclean

Intrigeri intrigeri at moszumanska.debian.org
Wed Aug 27 21:35:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 1.000000-source
in repository libmoosex-has-sugar-perl.

commit a30c40630d8f6bac7355cf7ab9bce44487c8eb2f
Author: Kent Fredric <kentfredric at gmail.com>
Date:   Fri Jan 31 07:20:13 2014 +1300

    use namespace::clean in tests instead of namespace::autoclean
---
 t/lib/T10Saccharin/TestPackage.pm    | 3 +--
 t/lib/T4Values/AMinimal.pm           | 2 +-
 t/lib/T4Values/BDeclare.pm           | 2 +-
 t/lib/T4Values/CDeclareRo.pm         | 2 +-
 t/lib/T4Values/DEverything.pm        | 2 +-
 t/lib/T4Values/EMixed.pm             | 2 +-
 t/lib/T4Values/TestCant.pm           | 2 +-
 t/lib/T5Is/TestPackage.pm            | 3 +--
 t/lib/T6AttrRequired/TestPackage.pm  | 4 ++--
 t/lib/T7AttrLazyBuild/TestPackage.pm | 3 +--
 t/lib/T8Saccharin/TestPackage.pm     | 3 +--
 t/lib/T9Saccharin/TestPackage.pm     | 2 +-
 12 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/t/lib/T10Saccharin/TestPackage.pm b/t/lib/T10Saccharin/TestPackage.pm
index a11f75b..08482a3 100644
--- a/t/lib/T10Saccharin/TestPackage.pm
+++ b/t/lib/T10Saccharin/TestPackage.pm
@@ -4,10 +4,9 @@ package T10Saccharin::TestPackage;
 use strict;
 use warnings;
 use Moose;
-use namespace::autoclean;
-
 use MooseX::Has::Sugar::Saccharin;
 use MooseX::Types::Moose qw( :all );
+use namespace::clean -except => 'meta';
 
 has roattr => required ro Str;
 
diff --git a/t/lib/T4Values/AMinimal.pm b/t/lib/T4Values/AMinimal.pm
index 00f257f..04ce7a2 100644
--- a/t/lib/T4Values/AMinimal.pm
+++ b/t/lib/T4Values/AMinimal.pm
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 
 use MooseX::Has::Sugar::Minimal;
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 sub ro_generated { { isa => 'Str', is => ro, } }
 
diff --git a/t/lib/T4Values/BDeclare.pm b/t/lib/T4Values/BDeclare.pm
index a71591b..6384dd6 100644
--- a/t/lib/T4Values/BDeclare.pm
+++ b/t/lib/T4Values/BDeclare.pm
@@ -4,7 +4,7 @@ package  T4Values::BDeclare;
 use strict;
 use warnings;
 use MooseX::Has::Sugar;
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 sub generated {
   { isa => 'Str', is => 'ro', required, lazy, lazy_build, coerce, weak_ref, auto_deref };
diff --git a/t/lib/T4Values/CDeclareRo.pm b/t/lib/T4Values/CDeclareRo.pm
index b58efe3..93d341a 100644
--- a/t/lib/T4Values/CDeclareRo.pm
+++ b/t/lib/T4Values/CDeclareRo.pm
@@ -4,7 +4,7 @@ package  T4Values::CDeclareRo;
 use strict;
 use warnings;
 use MooseX::Has::Sugar;
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 sub generated { { isa => 'Str', ro, } }
 
diff --git a/t/lib/T4Values/DEverything.pm b/t/lib/T4Values/DEverything.pm
index 749404f..228639b 100644
--- a/t/lib/T4Values/DEverything.pm
+++ b/t/lib/T4Values/DEverything.pm
@@ -4,7 +4,7 @@ package  T4Values::DEverything;
 use strict;
 use warnings;
 use MooseX::Has::Sugar;
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 sub generated {
   {
diff --git a/t/lib/T4Values/EMixed.pm b/t/lib/T4Values/EMixed.pm
index 9b2751a..a5f808e 100644
--- a/t/lib/T4Values/EMixed.pm
+++ b/t/lib/T4Values/EMixed.pm
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 use MooseX::Has::Sugar::Minimal;
 use MooseX::Has::Sugar qw( :attrs );
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 sub generated {
   {
diff --git a/t/lib/T4Values/TestCant.pm b/t/lib/T4Values/TestCant.pm
index c058b79..0752ff1 100644
--- a/t/lib/T4Values/TestCant.pm
+++ b/t/lib/T4Values/TestCant.pm
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 use Test::More    ();
 use Sub::Exporter ();
-use namespace::autoclean;
+use namespace::clean -except => 'meta';
 
 Sub::Exporter::setup_exporter(
   {
diff --git a/t/lib/T5Is/TestPackage.pm b/t/lib/T5Is/TestPackage.pm
index 935bce8..c97f0f8 100644
--- a/t/lib/T5Is/TestPackage.pm
+++ b/t/lib/T5Is/TestPackage.pm
@@ -4,9 +4,8 @@ package T5Is::TestPackage;
 use strict;
 use warnings;
 use Moose;
-use namespace::autoclean;
-
 use MooseX::Has::Sugar::Minimal;
+use namespace::clean -except => 'meta';
 
 has roattr => ( isa => 'Str', is => ro, required => 1, );
 
diff --git a/t/lib/T6AttrRequired/TestPackage.pm b/t/lib/T6AttrRequired/TestPackage.pm
index c45f40e..ccc406c 100644
--- a/t/lib/T6AttrRequired/TestPackage.pm
+++ b/t/lib/T6AttrRequired/TestPackage.pm
@@ -4,10 +4,10 @@ package T6AttrRequired::TestPackage;
 use strict;
 use warnings;
 use Moose;
-use namespace::autoclean;
-
 use MooseX::Has::Sugar;
 
+use namespace::clean -except => 'meta';
+
 has roattr => ( isa => 'Str', is => 'ro', required, );
 
 has rwattr => ( isa => 'Str', is => 'rw', required, );
diff --git a/t/lib/T7AttrLazyBuild/TestPackage.pm b/t/lib/T7AttrLazyBuild/TestPackage.pm
index 3ddc5a0..5d22638 100644
--- a/t/lib/T7AttrLazyBuild/TestPackage.pm
+++ b/t/lib/T7AttrLazyBuild/TestPackage.pm
@@ -4,9 +4,8 @@ package T7AttrLazyBuild::TestPackage;
 use strict;
 use warnings;
 use Moose;
-use namespace::autoclean;
-
 use MooseX::Has::Sugar;
+use namespace::clean -except => 'meta';
 
 has roattr => ( isa => 'Str', is => 'ro', lazy_build, );
 
diff --git a/t/lib/T8Saccharin/TestPackage.pm b/t/lib/T8Saccharin/TestPackage.pm
index 0da1dda..29efdcf 100644
--- a/t/lib/T8Saccharin/TestPackage.pm
+++ b/t/lib/T8Saccharin/TestPackage.pm
@@ -4,9 +4,8 @@ package T8Saccharin::TestPackage;
 use strict;
 use warnings;
 use Moose;
-use namespace::autoclean;
-
 use MooseX::Has::Sugar::Saccharin;
+use namespace::clean -except => 'meta';
 
 has roattr => lazy_build ro 'Str';
 
diff --git a/t/lib/T9Saccharin/TestPackage.pm b/t/lib/T9Saccharin/TestPackage.pm
index 719c59d..9ab380c 100644
--- a/t/lib/T9Saccharin/TestPackage.pm
+++ b/t/lib/T9Saccharin/TestPackage.pm
@@ -5,7 +5,7 @@ use strict;
 use warnings;
 
 use MooseX::Has::Sugar::Saccharin;
-use namespace::autoclean;
+use namespace::clean;
 
 sub Alpha {
   return {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoosex-has-sugar-perl.git



More information about the Pkg-perl-cvs-commits mailing list