Add ARM files
[dh-make-perl] / dev / arm / libperl-critic-perl / libperl-critic-perl-1.088 / t / TestingAndDebugging / ProhibitNoWarnings.run
diff --git a/dev/arm/libperl-critic-perl/libperl-critic-perl-1.088/t/TestingAndDebugging/ProhibitNoWarnings.run b/dev/arm/libperl-critic-perl/libperl-critic-perl-1.088/t/TestingAndDebugging/ProhibitNoWarnings.run
new file mode 100644 (file)
index 0000000..4b84f34
--- /dev/null
@@ -0,0 +1,69 @@
+## name warnings disabled
+## failures 1
+## cut
+
+package foo;
+no warnings;
+
+#-----------------------------------------------------------------------------
+
+## name selective warnings disabled
+## failures 1
+## cut
+
+package foo;
+no warnings 'uninitialized', 'deprecated';
+END_PERL
+
+$policy = 'TestingAndDebugging::ProhibitNoWarnings';
+is( pcritique($policy, \$code), 1, $policy.' selective warnings disabled');
+
+#-----------------------------------------------------------------------------
+
+## name selective warnings disabled
+## failures 1
+## cut
+
+package foo;
+no warnings qw(closure glob);
+
+#-----------------------------------------------------------------------------
+
+## name allow no warnings, mixed case config
+## failures 0
+## parms {allow => 'iO Glob OnCe'}
+## cut
+
+package foo;
+no warnings qw(glob io once);
+
+#-----------------------------------------------------------------------------
+
+## name allow no warnings, comma delimimted
+## failures 0
+## parms {allow => 'numeric,portable, pack'}
+# Funky config
+## cut
+
+package foo;
+no warnings "numeric", "pack", "portable";
+
+#-----------------------------------------------------------------------------
+
+## name wrong case, funky config
+## parms { allow => 'NumerIC;PORTABLE' }
+## failures 1
+## cut
+
+package foo;
+no warnings "numeric", "pack", 'portable';
+
+#-----------------------------------------------------------------------------
+
+## name More wrong case, funky config
+## failures 1
+## parms { allow => 'paCK/PortablE' }
+## cut
+
+package foo;
+no warnings qw(numeric pack portable);