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(
23 my $self = Parrot::Test::Pod->new( {
26 ok( defined $self, "Parrot::Test::Pod returned defined value" );
28 my $need_testing_ref = $self->identify_files_for_POD_testing( {
29 second_analysis => 'oreilly_summary_malformed',
34 foreach my $file ( @{ $need_testing_ref } ) {
35 # skip files with valid POD;
36 # report whatever is not skipped
37 unless (file_pod_ok($file)) {
38 push @failed_syntax, $file;
42 my $bad_syntax_files = join( "\n", @failed_syntax );
44 # only ok if everything passed
45 is( $bad_syntax_files, q{}, 'Pod syntax correct' );
47 diag("You should use podchecker to check the failed files.\n")
50 #################### SUBROUTINES ####################
54 t/codingstd/pod_syntax.t - Pod document syntax tests
59 % prove t/codingstd/pod_syntax.t
62 % perl t/codingstd/pod_syntax.t perl_module.pm perl_file.pl
66 Tests the Pod syntax for all files listed in F<MANIFEST> and
67 F<MANIFEST.generated> that appear to contain Pod markup. If any files
68 contain invalid POD markup, they are reported in the test output.
69 Use C<podchecker> to ferret out individual issues.
75 # cperl-indent-level: 4
78 # vim: expandtab shiftwidth=4: