File: pod_link.t

package info (click to toggle)
libffi-checklib-perl 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 520; sh: 20; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (2)
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
use Test2::Require::Module 'Test::Pod::LinkCheck::Lite';
use Test2::Require::EnvVar 'POD_CHECK';
use Test2::V0;
use Test::Pod::LinkCheck::Lite;

my @checks;

if(-d 'blib/script')
{
  push @checks, 'blib/script';
}
elsif(-d 'bin')
{
  push @checks, 'bin';
}

if(-d 'blib')
{
  push @checks, 'blib';
}
else
{
  push @checks, 'lib';
  diag "checking lib instead of blib";
}

Test::Pod::LinkCheck::Lite
  ->new
  ->all_pod_files_ok(@checks);

done_testing;