On Sun, 04 Jun 2006 16:57:13 +1000, Ken Foskey wrote:
> For example how do I ensure that there is a SYNOPSIS and DESCRIPTION
> section?
Ah, you want something entirely different for that. Specifically, the
tests performed by the
Perl::Critic::Policy::Documentation::RequirePodSections class in the
AFter a nights sleep, this works...
for my $module (glob("*.pm")) {
$module =~ s/.pm$//;
pod_coverage_ok( $module, "$module test" );
}
I still do not understand the parms. I think it can give me the audit
check I want but I am not sure.
For example how do I ensure that there is
> # Ensure POD is set up correctly.
> >
> > use Test::More;
> > eval "use Test::Pod 1.00";
> > plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
> > all_pod_files_ok( map( glob( "*.pm" ), s/.pm$//) );
>
> Your subject n
";
> plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
> all_pod_files_ok( map( glob( "*.pm" ), s/.pm$//) );
Your subject names Test::Pod::Coverage, yet you are not using it. If you
did, you'd just call all_pod_coverage_ok() and not ha
On Sat, 2006-06-03 at 08:15 -0400, Ricardo SIGNES wrote:
> You probably want:
>
> all_pod_files_ok(glob("*.pm"));
>
> I've almost never needed to use anything more than:
>
> all_pod_files_ok():
>
> That finds your perl modules in lib or blib, which is where they should be in
> a
> standard
* Ken Foskey <[EMAIL PROTECTED]> [2006-06-03T06:53:35]
> #!/usr/bin/perl
> # Ensure POD is set up correctly.
> use Test::More;
> eval "use Test::Pod 1.00";
> plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
> all_pod_files_ok( map( glob( "*.pm" ), s/.pm$//) );
Your map doesn't ma
I cannot figure out the how to make this work, this succeeds with no
documentation in the modules.
#!/usr/bin/perl
# Ensure POD is set up correctly.
use Test::More;
eval "use Test::Pod 1.00";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
all_pod_files_ok( map( glob( "*.pm"