Modified source files and compiled any and armel versions of packages
[pkg-perl] / deb-src / libperl-critic-perl / libperl-critic-perl-1.088 / t / 13_bundled_policies.t
1 #!perl
2
3 ##############################################################################
4 #      $URL: http://perlcritic.tigris.org/svn/perlcritic/trunk/Perl-Critic/t/13_bundled_policies.t $
5 #     $Date: 2008-06-06 00:48:04 -0500 (Fri, 06 Jun 2008) $
6 #   $Author: clonezone $
7 # $Revision: 2416 $
8 ##############################################################################
9
10 use 5.006001;
11 use strict;
12 use warnings;
13
14 use Test::More (tests => 1);
15
16 use Perl::Critic::UserProfile;
17 use Perl::Critic::PolicyFactory (-test => 1);
18
19 # common P::C testing tools
20 use Perl::Critic::TestUtils qw(bundled_policy_names);
21 Perl::Critic::TestUtils::block_perlcriticrc();
22
23 #-----------------------------------------------------------------------------
24
25 my $profile = Perl::Critic::UserProfile->new();
26 my $factory = Perl::Critic::PolicyFactory->new( -profile => $profile );
27 my @found_policies = sort map { ref $_ } $factory->create_all_policies();
28 my $test_label = 'successfully loaded policies matches MANIFEST';
29 is_deeply( \@found_policies, [bundled_policy_names()], $test_label );
30
31 #-----------------------------------------------------------------------------
32
33 # ensure we run true if this test is loaded by
34 # t/13_bundled_policies.t_without_optional_dependencies.t
35 1;
36
37 ##############################################################################
38 # Local Variables:
39 #   mode: cperl
40 #   cperl-indent-level: 4
41 #   fill-column: 78
42 #   indent-tabs-mode: nil
43 #   c-indentation-style: bsd
44 # End:
45 # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :