Name : perl-Test-Pod-Content
| |
Version : 0.0.6
| Vendor : obs://build_opensuse_org/home:osw3
|
Release : lp152.2.1
| Date : 2022-02-01 21:48:51
|
Group : Development/Libraries/Perl
| Source RPM : perl-Test-Pod-Content-0.0.6-lp152.2.1.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Test a Pod\'s content
|
Description :
This is a very simple module for testing a Pod\'s content. It is mainly intended for testing the content of generated Pod - that is, the Pod included in perl modules generated by some mechanism.
Another usage example is to test whether all files contain the same copyright notice:
plan tests => scalar AATTfilelist;
for my $file (sort AATTfilelist) { pod_section_like( $file, \'LICENSE AND COPYRIGHT\', qr{ This \\s library \\s is \\s free \\s software\\. \\s You \\s may \\s distribute/modify \\s it \\s under \\s the \\s same \\s terms \\s as \\s perl \\s itself }xms, \"$file License notice\"); }
See the files in the t/ directory for live examples.
Test::Pod::Content has a very simple concept of Pods: To Test::Pod::Content, a Pod is separated into section. Each section starts with a =head(1|2|3|4) directive, and ends with the next =head, or with the end of the document (=cut).
This is a very drastic simplification of Pod\'s document object model, and only allows for coarse-grained tests.
Test::Pod::Content provides the following subroutines for testing a Pod\'s content:
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/osw3:/pi/openSUSE_Leap_15.2_ARM/noarch |