From: Vincent Pit Date: Thu, 29 Jul 2010 11:05:44 +0000 (+0200) Subject: Add POD coverage test X-Git-Tag: v0.02~26 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=06d4a421cd9d9f4698b1901f6caac0a42dfc81b4;p=perl%2Fmodules%2FLaTeX-TikZ.git Add POD coverage test --- diff --git a/MANIFEST b/MANIFEST index 23bd0e6..e15d1c3 100644 --- a/MANIFEST +++ b/MANIFEST @@ -48,3 +48,4 @@ t/22-clip.t t/23-pattern.t t/30-functor.t t/91-pod.t +t/92-pod-coverage.t diff --git a/t/92-pod-coverage.t b/t/92-pod-coverage.t new file mode 100644 index 0000000..6d2e641 --- /dev/null +++ b/t/92-pod-coverage.t @@ -0,0 +1,56 @@ +#!perl -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 $@; + +plan tests => 33; + +my $moose_private = { also_private => [ qr/^BUILD$/, qr/^DEMOLISH$/ ] }; + +# First load the interface so that no keywords are registered. +pod_coverage_ok( 'LaTeX::TikZ::Interface' ); + +pod_coverage_ok( 'LaTeX::TikZ' ); +pod_coverage_ok( 'LaTeX::TikZ::Formatter' ); +pod_coverage_ok( 'LaTeX::TikZ::Functor' ); +pod_coverage_ok( 'LaTeX::TikZ::Meta::TypeConstraint::Autocoerce' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Clip' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Color' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Fill' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Formatted' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Layer', $moose_private); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Pattern' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Pattern::Dots' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Pattern::Lines' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Raw' ); +pod_coverage_ok( 'LaTeX::TikZ::Mod::Width' ); +pod_coverage_ok( 'LaTeX::TikZ::Point' ); +pod_coverage_ok( 'LaTeX::TikZ::Point::Math::Complex' ); +pod_coverage_ok( 'LaTeX::TikZ::Scope' ); +pod_coverage_ok( 'LaTeX::TikZ::Set' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Arc' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Arrow' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Circle' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Line' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Mutable' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Op' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Path' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Point' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Polyline' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Raw' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Rectangle' ); +pod_coverage_ok( 'LaTeX::TikZ::Set::Sequence' ); +pod_coverage_ok( 'LaTeX::TikZ::Tools' );