File: pod.t

package info (click to toggle)
libhttp-recorder-perl 0.07-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 116 kB
  • sloc: perl: 676; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 531 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
20
21
22
23
24
25
use Test::More;
 
use File::Spec;
use File::Find;
use HTTP::Recorder;
use strict;
 
eval {
    require Test::Pod;
};
 
my $ok = !$@ && ($Test::Pod::VERSION >= '0.95');
 
if (!$ok) {
    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, "POD file $file OK");
    }
}