File: podok

package info (click to toggle)
libcache-historical-perl 0.05-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 96 kB
  • sloc: perl: 278; makefile: 2
file content (31 lines) | stat: -rwxr-xr-x 507 bytes parent folder | download | duplicates (5)
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
29
30
31
#!/usr/bin/perl
use Test::Pod;
use Test::More;
use File::Find;

podok(@ARGV);
0;

##################################################
sub podok {
##################################################
    my ($dir) = @_;

    $dir ||= ".";

    my @pms = ();

    File::Find::find( sub {
        return unless -f $_;
        return unless /\.pm$/;
        push @pms, "$File::Find::name";
    }, $dir);

    my $nof_tests = scalar @pms;

    plan tests => $nof_tests;

    for(@pms) {
        pod_ok($_);
    }
}