File: 007_pod.t

package info (click to toggle)
libapache-gallery-perl 0.99-svn060811-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 536 kB
  • ctags: 24
  • sloc: perl: 1,128; makefile: 60; sh: 13
file content (19 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use Test::More;
use File::Spec;
use File::Find;
use strict;

eval "use Test::Pod 0.95";

if ($@) {
	plan skip_all => 'Test::Pod v0.95 required for testing POD';
} else {
	Test::Pod->import;
	my @files;
	my $blib = File::Spec->catfile(qw(blib lib));
	find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
	plan tests => scalar @files;
	foreach my $file (@files) {
		pod_file_ok($file);
	}
}