File: 00-pod.t

package info (click to toggle)
libnet-dns-perl 0.59-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 828 kB
  • ctags: 400
  • sloc: perl: 6,650; sh: 220; ansic: 101; makefile: 60
file content (26 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: 00-pod.t 264 2005-04-06 09:16:15Z olaf $

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);
	}
}