logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::Inline::Content - Test::Inline 2 Content Handlers

Author

       Adam Kennedy <adamk@cpan.org>

Description

       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.

Methods

new
       A default implementation of the "new" method is provided that takes no parameters and creates a default
       (empty) object.

       Returns a new "Test::Inline::Content" object.

   process$Inline$Script
       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.

       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.

Name

       Test::Inline::Content - Test::Inline 2 Content Handlers

Support

       See the main SUPPORT section.

       Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-
       Inline> (or bug-Test-Inline@rt.cpan.org <mailto:bug-Test-Inline@rt.cpan.org>).

Version

       version 2.214

See Also