File: pod.t

package info (click to toggle)
libdbd-odbc-perl 1.37-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,272 kB
  • sloc: perl: 7,932; ansic: 5,991; makefile: 33; sql: 8
file content (34 lines) | stat: -rw-r--r-- 745 bytes parent folder | download
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

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