Commits

Shlomi Fish committed 8be1759

Add t/pod-coverage.t.

For POD coverage.

  • Participants
  • Parent commits 3bf98c9

Comments (0)

Files changed (3)

Text-Format/Text-Format/Changes

 Revision history for Perl extension Text::Format.
 
     - Add "use warnings;" to lib/Text/Format.pm .
+    - Add t/pod.t .
+    - Add t/pod-coverage.t .
 
 0.55 Thu May 31 09:17:32 IDT 2012
     - Fix small spelling error in the POD:

Text-Format/Text-Format/MANIFEST

 t/format.t
 t/justify.t
 t/pod.t
+t/pod-coverage.t
 MANIFEST
 Makefile.PL
 META.yml

Text-Format/Text-Format/t/pod-coverage.t

+use strict;
+use warnings;
+use Test::More;
+
+# Ensure a recent version of Test::Pod::Coverage
+my $min_tpc = 1.08;
+eval "use Test::Pod::Coverage $min_tpc";
+plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
+    if $@;
+
+# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
+# but older versions don't recognize some common documentation styles
+my $min_pc = 0.18;
+eval "use Pod::Coverage $min_pc";
+plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
+    if $@;
+
+all_pod_coverage_ok();