Test::Inline::Content - Test::Inline 2 Content Handlers
version 2.214
One problem with the initial versions of Test::Inline 2 was the method by which it generated the script contents.
Test::Inline::Content provides a basic API by which more sophisticated extensions can be written to control the content of the generated scripts.
Test::Inline::Content
A default implementation of the new method is provided that takes no parameters and creates a default (empty) object.
new
Returns a new Test::Inline::Content object.
The process method does the work of generating the script content. It takes as argument the parent Test::Inline object, and the completed Test::Inline::Script object for which the file is to be generated.
process
The default implementation returns only an empty script that dies with an appropriate error message.
Returns the content of the script as a string, or undef on error.
undef
See the main SUPPORT section.
Bugs may be submitted through the RT bug tracker (or bug-Test-Inline@rt.cpan.org).
Adam Kennedy <adamk@cpan.org>
This software is copyright (c) 2003 by Adam Kennedy.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Inline
CPAN shell
perl -MCPAN -e shell install Test::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.