Build all packages removed dependencies of libtest-exception-perl libtest-warn-perl...
[dh-make-perl] / dev / i386 / libperl-critic-perl / libperl-critic-perl-1.088 / t / Modules / ProhibitAutomaticExportation.run
diff --git a/dev/i386/libperl-critic-perl/libperl-critic-perl-1.088/t/Modules/ProhibitAutomaticExportation.run b/dev/i386/libperl-critic-perl/libperl-critic-perl-1.088/t/Modules/ProhibitAutomaticExportation.run
new file mode 100644 (file)
index 0000000..cade3c6
--- /dev/null
@@ -0,0 +1,97 @@
+## name Basic failure, "our @EXPORT;"
+## failures 1
+## cut
+
+require Exporter;
+our @EXPORT = qw(foo bar);
+
+#-----------------------------------------------------------------------------
+
+## name Basic failure, "use vars @EXPORT;"
+## failures 1
+## cut
+
+use Exporter;
+use vars '@EXPORT';
+@EXPORT = qw(foo bar);
+
+#-----------------------------------------------------------------------------
+
+## name Basic failure, "@PACKAGE::EXPORT;"
+## failures 1
+## cut
+
+use base 'Exporter';
+@Foo::EXPORT = qw(foo bar);
+
+#-----------------------------------------------------------------------------
+
+## name Basic pass, "our @EXPORT_OK;"
+## failures 0
+## cut
+
+require Exporter;
+our @EXPORT_OK = ( '$foo', '$bar' );
+
+#-----------------------------------------------------------------------------
+
+## name Basic pass, "use vars %EXPORT_TAGS;"
+## failures 0
+## cut
+
+use Exporter;
+use vars '%EXPORT_TAGS';
+%EXPORT_TAGS = ();
+
+#-----------------------------------------------------------------------------
+
+## name Basic pass, "@PACKAGE::EXPORT_OK;"
+## failures 0
+## cut
+
+use base 'Exporter';
+@Foo::EXPORT_OK = qw(foo bar);
+
+#-----------------------------------------------------------------------------
+
+## name Basic pass, "use vars '@EXPORT_OK';"
+## failures 0
+## cut
+
+use base 'Exporter';
+use vars qw(@EXPORT_OK);
+@EXPORT_OK = qw(foo bar);
+
+#-----------------------------------------------------------------------------
+
+## name Basic pass, "use vars '%EXPORT_TAGS';"
+## failures 0
+## cut
+
+use base 'Exporter';
+use vars qw(%EXPORT_TAGS);
+%EXPORT_TAGS = ( foo => [ qw(baz bar) ] );
+
+#-----------------------------------------------------------------------------
+
+## name No exporting at all
+## failures 0
+## cut
+
+print 123; # no exporting at all; for test coverage
+
+##############################################################################
+#      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/Modules/ProhibitAutomaticExportation.run $
+#     $Date: 2008-03-16 17:40:45 -0500 (Sun, 16 Mar 2008) $
+#   $Author: clonezone $
+# $Revision: 2187 $
+##############################################################################
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 78
+#   indent-tabs-mode: nil
+#   c-indentation-style: bsd
+# End:
+# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :