Shlomi Fish avatar Shlomi Fish committed 8be1759

Add t/pod-coverage.t.

For POD coverage.

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();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.