1Test::Inline::Content(3U)ser Contributed Perl DocumentatiToenst::Inline::Content(3)
2
3
4
6 Test::Inline::Content - Test::Inline 2 Content Handlers
7
9 version 2.214
10
12 One problem with the initial versions of Test::Inline 2 was the method
13 by which it generated the script contents.
14
15 "Test::Inline::Content" provides a basic API by which more
16 sophisticated extensions can be written to control the content of the
17 generated scripts.
18
20 new
21 A default implementation of the "new" method is provided that takes no
22 parameters and creates a default (empty) object.
23
24 Returns a new "Test::Inline::Content" object.
25
26 process $Inline $Script
27 The "process" method does the work of generating the script content. It
28 takes as argument the parent Test::Inline object, and the completed
29 Test::Inline::Script object for which the file is to be generated.
30
31 The default implementation returns only an empty script that dies with
32 an appropriate error message.
33
34 Returns the content of the script as a string, or "undef" on error.
35
37 See the main SUPPORT section.
38
39 Bugs may be submitted through the RT bug tracker
40 <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Inline> (or
41 bug-Test-Inline@rt.cpan.org <mailto:bug-Test-Inline@rt.cpan.org>).
42
44 Adam Kennedy <adamk@cpan.org>
45
47 This software is copyright (c) 2003 by Adam Kennedy.
48
49 This is free software; you can redistribute it and/or modify it under
50 the same terms as the Perl 5 programming language system itself.
51
52
53
54perl v5.36.0 2023-01-20 Test::Inline::Content(3)