Test::...Content(3pm)

πŸ“¦
version 2.214 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Inline object, and
  • the completed Test::Inline::Script object 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> ✨


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