Debian Codegraph @

t/_pod_coverage.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 use warningsscip-perl cpan Test-Inter 1.13 warnings/ 'all';
4 use strictscip-perl cpan Test-Inter 1.13 strict/;
5
6 BEGIN {
7 use Test::Morescip-perl cpan Test-Inter 1.13 Test/More/;
8 # Don't run tests for installs
9 unless ($ENVscip-perl cpan Test-Inter 1.13 main/`%ENV`.{Test_Inter_RELEASE_TESTING}) {
10 planscip-perl cpan Test-Inter 1.13 main/plan(). skip_all => 'Author tests not required for installation (set Test_Inter_RELEASE_TESTING to test)';
11 }
12 }
13
14 # CPANTORPM-DEPREQ REQEXCL File::Basename
15 # CPANTORPM-DEPREQ REQEXCL Cwd
16 # CPANTORPM-DEPREQ REQEXCL Test::Pod::Coverage
17
18 use File::Basenamescip-perl cpan Test-Inter 1.13 File/Basename/;
19 use Cwdscip-perl cpan Test-Inter 1.13 Cwd/ 'abs_path';
20 use Test::Pod::Coverage 1.00scip-perl cpan Test-Inter 1.13 Test/Pod/`Coverage 1.00`/;
21
22 # Figure out the directories. This comes from Test::Inter.
23
24 my($moddir,$testdir,$libdir);
25
26 BEGIN {
27 if (-f "$0") {
28 $moddir = dirnamescip-perl cpan Test-Inter 1.13 main/dirname().(dirnamescip-perl cpan Test-Inter 1.13 main/dirname().(abs_pathscip-perl cpan Test-Inter 1.13 main/abs_path().($0scip-perl cpan Test-Inter 1.13 main/$0.)));
29 } elsif (-d "./t") {
30 $moddir = dirnamescip-perl cpan Test-Inter 1.13 main/dirname().(abs_pathscip-perl cpan Test-Inter 1.13 main/abs_path().('.'));
31 } elsif (-d "../t") {
32 $moddir = dirnamescip-perl cpan Test-Inter 1.13 main/dirname().(abs_pathscip-perl cpan Test-Inter 1.13 main/abs_path().('..'));
33 }
34 if (-d "$moddir/t") {
35 $testdir = "$moddir/t";
36 }
37 if (-d "$moddir/lib") {
38 $libdir = "$moddir/lib";
39 }
40 }
41 use libscip-perl cpan Test-Inter 1.13 lib/ $libdir;
42
43 # If there is a file _pod_coverage.ign, it should be a list of module
44 # name substrings to ignore (any module with any of these substrings
45 # will be ignored).
46
47 my @ign = ();
48 if (-f "$testdir/_pod_coverage.ign") {
49 openscip-perl cpan Test-Inter 1.13 main/open().(IN,"$testdir/_pod_coverage.ign");
50 @ign = <IN>;
51 closescip-perl cpan Test-Inter 1.13 main/close().(IN);
52 chompscip-perl cpan Test-Inter 1.13 main/chomp().(@ign);
53 }
54
55 #
56 # Test that the POD documentation is complete.
57 #
58
59 chdirscip-perl cpan Test-Inter 1.13 main/chdir().($moddir);
60
61 if (@ign) {
62
63 my @mod = all_modulesscip-perl cpan Test-Inter 1.13 main/all_modules().('lib');
64 my @test = ();
65
66 MOD:
67 foreach my $mod (@mod) {
68 foreach my $ign (@ign) {
69 next MOD if ($mod =~ /\Q$ign\E/);
70 }
71 pushscip-perl cpan Test-Inter 1.13 main/push().(@test,$mod);
72 }
73
74 chdirscip-perl cpan Test-Inter 1.13 main/chdir().($libdir);
75 planscip-perl cpan Test-Inter 1.13 main/plan(). tests => scalarscip-perl cpan Test-Inter 1.13 main/scalar().(@test);
76 foreach my $mod (@test) {
77 pod_coverage_okscip-perl cpan Test-Inter 1.13 main/pod_coverage_ok().($mod);
78 }
79
80 } else {
81 all_pod_coverage_okscip-perl cpan Test-Inter 1.13 main/all_pod_coverage_ok().();
82 }