Test::...Content(3pm)
π NAME π
Test::Inline::Content β the Test::Inline 2 Content Handlers, bestie β¨
(also living in the Test::...Content(3pm) neighbourhood, User Contributed Perl Documentation vibes, iykyk π«Ά)
πΈ VERSION πΈ
This one's at version 2.214, periodt π
π DESCRIPTION π
okay so storytime π β back in the early days of Test::Inline 2, there was one whole problem: the way it generated the contents of your scripts was... not it. kinda locked in, no customization, lowkey tragic π
enter Test::Inline::Content π β it hands you a basic API so that way more sophisticated extensions can be written to take control of the content of the generated scripts. like, you get to be the main character of your own script generation. iconic π
π¦ METHODS π¦
β¨ new
A default implementation of the new method is provided, and it's a whole vibe: it takes no parameters and creates a default (empty) object π«§
Returns a new Test::Inline::Content object π
β¨ process $Inline $Script
This is the method that actually does the work of generating the script content πͺ
It takes as arguments:
- the parent
Test::Inlineobject, and - the completed
Test::Inline::Scriptobject for which the file is to be generated
ngl, the default implementation is a little dramatic π β it returns only an empty script that dies with an appropriate error message. like, it's giving placeholder energy fr fr.
Returns the content of the script as a string, or undef on error β οΈ
π 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>) ππ
π AUTHOR π
Adam Kennedy <adamk@cpan.org> β¨
π COPYRIGHT AND LICENSE π
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 πΈ
no cap, that's the whole page bestie π go forth and generate content β¨
signing off from perl v5.32.0, dated 2021-01-31 β catch you on the flip side, mwah ππ
π¦ where this page comes from
- debian bookworm: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-inline-perl 2.214-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms