Personal tools
Skip to content. | Skip to navigation
Test::Perl::Critic wraps the Perl::Critic engine in a convenient subroutine suitable for test programs written using the Test::More framework. This makes it easy to integrate coding-standards enforcement into the build process. For ultimate convenience (at the expense of some flexibility), see the criticism pragma.
Check POD files for errors or warnings in a test file, using Pod::Simple to do the heavy lifting.
Checks for POD coverage in files for your distribution.
Basic utilities for writing tests.
Tainted data is data that comes from an unsafe source, such as the command line, or, in the case of web apps, any GET or POST transactions. Read the perlsec man page for details on why tainted data is bad, and how to untaint the data. When you're writing unit tests for code that deals with tainted data, you'll want to have a way to provide tainted data for your routines to handle, and easy ways to check and report on the taintedness of your data, in standard Test::More style.
If you have written a test module based on Test::Builder then Test::Tester allows you to test it with the minimum of effort.
This module provides a few convenience methods for testing warning based code.
Text::Autoformat provides intelligent formatting of plaintext without the need for any kind of embedded mark-up. The module recognizes Internet quoting conventions, a wide range of bulleting and number schemes, centered text, and block quotations, and reformats each appropriately. Other options allow the user to adjust inter-word and inter-paragraph spacing, justify text, and impose various capitalization schemes. The module also supplies a re-entrant, highly configurable replacement for the built-in Perl format() mechanism.
Text::Diff provides a basic set of services akin to the GNU diff utility. It is not anywhere near as feature complete as GNU diff, but it is better integrated with Perl and available on all platforms. It is often faster than shelling out to a system's diff executable for small files, and generally slower on larger files.