From: Graham Knop Date: Thu, 15 Feb 2018 09:36:48 +0000 (+0100) Subject: use strict and warnings consistently in tests X-Git-Tag: v1.001_001~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dae1b1a5676693bcbe144114442fecbb47785589;p=p5sagit%2FClass-C3-Componentised.git use strict and warnings consistently in tests --- diff --git a/t/00-load.t b/t/00-load.t index d593da8..4317411 100644 --- a/t/00-load.t +++ b/t/00-load.t @@ -1,3 +1,5 @@ +use strict; +use warnings; use Test::More tests => 1; BEGIN { diff --git a/t/lib/DestroyDollarUnderscore.pm b/t/lib/DestroyDollarUnderscore.pm index f514035..0ecff1f 100644 --- a/t/lib/DestroyDollarUnderscore.pm +++ b/t/lib/DestroyDollarUnderscore.pm @@ -1,7 +1,6 @@ package DestroyDollarUnderscore; - -use warnings; use strict; +use warnings; undef ($_); diff --git a/t/lib/MyModule.pm b/t/lib/MyModule.pm index 0efcb0f..cbb661d 100644 --- a/t/lib/MyModule.pm +++ b/t/lib/MyModule.pm @@ -1,5 +1,7 @@ package # hide from pause MyModule; +use strict; +use warnings; use base 'Class::C3::Componentised'; diff --git a/t/lib/MyModule/ErrorComponent.pm b/t/lib/MyModule/ErrorComponent.pm index 9f94b25..069bdbc 100644 --- a/t/lib/MyModule/ErrorComponent.pm +++ b/t/lib/MyModule/ErrorComponent.pm @@ -1,7 +1,7 @@ package # hide from PAUSE MyModule::ErrorComponent; -use warnings; use strict; +use warnings; # this is missing on purpose # 1; diff --git a/t/lib/MyModule/OwnComponent.pm b/t/lib/MyModule/OwnComponent.pm index b89b5fe..e9ca293 100644 --- a/t/lib/MyModule/OwnComponent.pm +++ b/t/lib/MyModule/OwnComponent.pm @@ -1,5 +1,7 @@ package # hide from pause MyModule::OwnComponent; +use strict; +use warnings; use MRO::Compat; use mro 'c3'; diff --git a/t/lib/MyModule/Plugin/Foo.pm b/t/lib/MyModule/Plugin/Foo.pm index 90f3745..5586aa8 100644 --- a/t/lib/MyModule/Plugin/Foo.pm +++ b/t/lib/MyModule/Plugin/Foo.pm @@ -1,5 +1,7 @@ package # hide from pause MyModule::Plugin::Foo; +use strict; +use warnings; use MRO::Compat; use mro 'c3'; diff --git a/t/lib/MyModuleNoBase.pm b/t/lib/MyModuleNoBase.pm index 5c997eb..728c963 100644 --- a/t/lib/MyModuleNoBase.pm +++ b/t/lib/MyModuleNoBase.pm @@ -1,5 +1,7 @@ package # hide from pause MyModuleNoBase; +use strict; +use warnings; use base 'Class::C3::Componentised';