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 / tlib / Perl / Critic / TestUtilitiesWithMinimalDependencies.pm
1 ##############################################################################
2 #      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/tlib/Perl/Critic/TestUtilitiesWithMinimalDependencies.pm $
3 #     $Date: 2008-07-03 10:19:10 -0500 (Thu, 03 Jul 2008) $
4 #   $Author: clonezone $
5 # $Revision: 2489 $
6 ##############################################################################
7
8 package Perl::Critic::TestUtilitiesWithMinimalDependencies;
9
10 use 5.006001;
11 use strict;
12 use warnings;
13
14 # do not use Readonly-- this module is used at build-time.
15
16 use base 'Exporter';
17
18 our $VERSION = '1.088';
19 our @EXPORT_OK = qw(
20     get_skip_all_tests_tap
21 );
22
23 #-----------------------------------------------------------------------------
24
25 sub get_skip_all_tests_tap {
26     return '1..0 # Skip ';
27 }
28
29 1;
30
31 __END__
32
33 #-----------------------------------------------------------------------------
34
35 =pod
36
37 =for stopwords
38
39 =head1 NAME
40
41 Perl::Critic::TestUtilitiesWithMinimalDependencies - Testing functions that only depend upon L<strict>, L<warnings>, and L<Exporter>.
42
43 =head1 SYNOPSIS
44
45   use Perl::Critic::TestUtilitiesWithMinimalDependencies qw{
46       get_skip_all_tests_tap
47   };
48
49   use Test::More;
50
51   if ($should_not_run) {
52       plan skip_all => 'Hey!  I shouldn't be run!';
53   }
54
55 =head1 DESCRIPTION
56
57 This module is used by L<Perl::Critic> only for self-testing. It
58 differs from L<Perl::Critic::TestUtils> in that it only depends upon
59 L<strict>, L<warnings>, and L<Exporter>.  This is important for tests
60 that need to hide the presence of other modules before starting.
61
62 =head1 IMPORTABLE SUBROUTINES
63
64 =over
65
66 =item C< get_skip_all_tests_tap() >
67
68 Returns a string representing the TAP (Test Anything Protocol) output
69 for skipping an entire file.  This is useful if you don't want to load
70 any Test::* modules.
71
72
73 =back
74
75
76 =head1 AUTHOR
77
78 Elliot Shank <perl@cpan.org>
79
80 =head1 COPYRIGHT
81
82 Copyright (c) 2007-2008 Elliot Shank.  All rights reserved.
83
84 This program is free software; you can redistribute it and/or modify
85 it under the same terms as Perl itself.  The full text of this license
86 can be found in the LICENSE file included with this module.
87
88 =cut
89
90 # Local Variables:
91 #   mode: cperl
92 #   cperl-indent-level: 4
93 #   fill-column: 78
94 #   indent-tabs-mode: nil
95 #   c-indentation-style: bsd
96 # End:
97 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :