File: pod.t

package info (click to toggle)
libdbd-odbc-perl 1.50-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,392 kB
  • ctags: 496
  • sloc: perl: 8,818; ansic: 6,376; makefile: 33; sql: 8
file content (36 lines) | stat: -rwxr-xr-x 815 bytes parent folder | download | duplicates (6)
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
32
33
34
35
36
#!perl
use Test::More;
use strict;
use warnings;

my $has_test_nowarnings = 1;
eval "require Test::NoWarnings";
$has_test_nowarnings = undef if $@;

END {
    Test::NoWarnings::had_no_warnings()
          if ($has_test_nowarnings);
}

my $basic_tests = 4;
my $tests = $basic_tests;
$tests += 1 if $has_test_nowarnings;
plan tests => $tests;
eval {
    require Test::Pod;
    Test::Pod->import;
};
SKIP: {
    if (($@) || ($Test::Pod::VERSION < '1.00')) {
        skip "Test::Pod 1.00 required for testing POD", $basic_tests;
    }
    if (! -d '.git') {
        skip "Author test", $basic_tests;
    }
    my @pods = all_pod_files();
    #diag("pod files: " . join(",", @pods));
    foreach my $pod (@pods) {
        next if $pod !~ /(ODBC.pm)|(FAQ.pm)|(Changes.pm)|(TO_DO.pm)/;
        pod_file_ok($pod);
    }
};