Debian Codegraph @

xt/author/pod-linkcheck.t

raw
1 #!perl
2
3 use strict;
4 use warnings;
5 use Test::More;
6
7 foreach my $env_skip ( qw(
8 SKIP_POD_LINKCHECK
9 ) ){
10 plan skip_all => "\$ENV{$env_skip} is set, skipping"
11 if $ENV{$env_skip};
12 }
13
14 eval "use Test::Pod::LinkCheck";
15 if ( $@ ) {
16 plan skip_all => 'Test::Pod::LinkCheck required for testing POD';
17 }
18 else {
19 Test::Pod::LinkCheck->new->all_pod_ok;
20 }