Test::inline 2 content handlers
One problem with the initial versions of Test::Inline 2 was the method by which it generated the script contents.
\*(C`Test::Inline::Content\*(C' provides a basic \s-1API\s0 by which more sophisticated extensions can be written to control the content of the generated scripts.
A default implementation of the \*(C`new\*(C' method is provided that takes no parameters and creates a default (empty) object.
Returns a new \*(C`Test::Inline::Content\*(C' object. The \*(C`process\*(C' 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.
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 \*(C`undef\*(C' on error.
See the main \s-1SUPPORT\s0 section.
Adam Kennedy <[email protected]>, <http://ali.as/>
Copyright 2004 - 2013 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the \s-1LICENSE\s0 file included with this module.