2 # Copyright (C) 2001-2010, Parrot Foundation.
11 eval 'use Parrot::Test::Pod';
13 plan skip_all => 'Prerequisites for Parrot::Test::Pod not satisfied';
16 eval 'use Parrot::Test::Pod::Utils qw(
22 'Prerequisites for Parrot::Test::Pod::Utils not satisfied';
29 my $self = Parrot::Test::Pod->new( {
32 ok( defined $self, "Parrot::Test::Pod returned defined value" );
34 my $need_testing_ref = $self->identify_files_for_POD_testing( {
35 second_analysis => 'oreilly_summary_malformed',
38 my @empty_description;
40 foreach my $file ( @{ $need_testing_ref } ) {
41 # check DESCRIPTION section on valid POD files
42 if ( file_pod_ok($file) and empty_description($file) ) {
43 push @empty_description, $file;
47 my $empty_description_files = join( "\n", sort @empty_description);
48 my $nempty_description = scalar( @empty_description );
51 local $TODO = 'POD requirements in flux: TT #292';
54 $empty_description_files,
56 'All Pod files have non-empty DESCRIPTION sections'
60 diag("\nFound $nempty_description files without DESCRIPTION sections.\n")
61 if $nempty_description;
63 #################### SUBROUTINES ####################
67 t/codingstd/pod_description.t - Identify files lacking 'DESCRIPTION' in POD
72 % prove t/codingstd/pod_description.t
75 % perl t/codingstd/pod_description.t perl_module.pm perl_file.pl
79 Tests the Pod syntax for all files listed in F<MANIFEST> and
80 F<MANIFEST.generated> that appear to contain Pod markup. If any files
81 contain with valid POD markup lack C<DESCRIPTION> sections, list them.
87 # cperl-indent-level: 4
90 # vim: expandtab shiftwidth=4: