Skip to content

Commit

Permalink
add pod tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acme committed Jun 23, 2009
1 parent 4112351 commit c569e8b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -6,6 +6,7 @@ Revision history for Perl module WWW::Gazetteer:
- add human-readable license
- move test into t/ directory
- use strict
- add pod tests

0.23 Sat Jan 29 11:14:51 CET 2005
- reworked to use Module::Pluggable
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Expand Up @@ -3,5 +3,7 @@ Gazetteer.pm
MANIFEST This list of files
Makefile.PL
README
t/pod.t
t/pod_coverage.t
t/simple.t
META.yml Module meta-data (added by MakeMaker)
6 changes: 6 additions & 0 deletions t/pod.t
@@ -0,0 +1,6 @@
#!perl -T

use Test::More;
eval "use Test::Pod 1.14";
plan skip_all => "Test::Pod 1.14 required for testing POD: $@" if $@;
all_pod_files_ok();
13 changes: 13 additions & 0 deletions t/pod_coverage.t
@@ -0,0 +1,13 @@
use Test::More;
eval "use Test::Pod::Coverage 1.00";
plan skip_all => "Test::Pod::Coverage 1.00 required for testing POD coverage"
if $@;
all_pod_coverage_ok( { also_private => [qr/^[A-Z_]+$/] } );

# Workaround for dumb bug (fixed in 5.8.7) where Test::Builder thinks that
# certain "die"s that happen inside evals are not actually inside evals,
# because caller() is broken if you turn on $^P like Module::Refresh does
#
# (I mean, if we've gotten to this line, then clearly the test didn't die, no?)
Test::Builder->new->{Test_Died} = 0;

0 comments on commit c569e8b

Please sign in to comment.