Test your SYNOPSIS code
Test::Synopsis is an (author) test module to find .pm or .pod files under
your _lib_ directory and then make sure the example snippet code in your
_SYNOPSIS_ section passes the perl compile check.
Note that this module only checks the perl syntax (by wrapping the code
with 'sub') and doesn't actually run the code.
Suppose you have the following POD in your module.
=head1 NAME
Awesome::Template - My awesome template
=head1 SYNOPSIS
use Awesome::Template;
my $template = Awesome::Template->new;
$tempalte->render("template.at");
=head1 DESCRIPTION
An user of your module would try copy-paste this synopsis code and find
that this code doesn't compile because there's a typo in your variable name
_$tempalte_. Test::Synopsis will catch that error before you ship it.
- Sources inherited from project openSUSE:Backports:SLE-15-SP1
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP1:Update/perl-Test-Synopsis && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
Test-Synopsis-0.15.tar.gz | 0000025127 24.5 KB | |
cpanspec.yml | 0000000669 669 Bytes | |
perl-Test-Synopsis.changes | 0000003076 3 KB | |
perl-Test-Synopsis.spec | 0000002656 2.59 KB |
Revision 1 (latest revision is 3)
osc copypac from project:openSUSE:Leap:15.1 package:perl-Test-Synopsis revision:10, using expand
Comments 0