Test your SYNOPSIS code

Edit Package perl-Test-Synopsis

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.

Refresh
Refresh
Source Files
Filename Size Changed
Test-Synopsis-0.10.tar.gz 0000020044 19.6 KB
perl-Test-Synopsis.changes 0000001463 1.43 KB
perl-Test-Synopsis.spec 0000002495 2.44 KB
Revision 9 (latest revision is 17)
Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_factory) accepted request 221906 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 9)
Automatic submission by obs-autosubmit
Comments 0
openSUSE Build Service is sponsored by