File: pod.t

package info (click to toggle)
libcgi-application-plugin-configauto-perl 1.33-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 100 kB
  • sloc: perl: 85; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (8)
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
27
28
use Test::More;
 
use File::Spec;
use File::Find;
use strict;
 
eval {
  require Test::Pod;
  Test::Pod->import;
};
 
my @files;
 
if ($@) {
  plan skip_all => "Test::Pod required for testing POD";
}
else {
  my $blib = File::Spec->catfile(qw(blib lib));
  find(\&wanted, $blib);
  plan tests => scalar @files;
  foreach my $file (@files) {
    pod_file_ok($file);
  }
}
 
sub wanted {
  push @files, $File::Find::name if /\.p(l|m|od)$/;
}