10
# Skip if doing a regular install
11
unless ( $ENV{AUTOMATED_TESTING} ) {
12
plan( skip_all => "Author tests not required for installation" );
15
# Load the testing modules if we can
16
eval "use Test::Pod 1.00";
18
plan( skip_all => "Test::Pod not available for testing" );
28
#####################################################################
29
# WARNING: INSANE BLACK MAGIC
30
#####################################################################
32
# Hack Pod::Simple::BlackBox to ignore the Test::Inline
33
# "Extended Begin" syntax.
34
# For example, "=begin has more than one word errors"
36
if ( $Test::Pod::VERSION ) {
37
$begin = \&Pod::Simple::BlackBox::_ponder_begin;
41
my $content = join ' ', splice @$para, 2;
42
$content =~ s/^\s+//s;
43
$content =~ s/\s+$//s;
44
my @words = split /\s+/, $content;
45
if ( $words[0] =~ /^test(?:ing)?\z/s ) {
46
foreach ( 2 .. $#$para ) {
49
$para->[2] = $words[0];
59
if ( $Test::Pod::VERSION ) {
60
*Pod::Simple::BlackBox::_ponder_begin = \&mybegin;
64
#####################################################################
66
#####################################################################