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 One problem with the initial versions of Test::Inline 2 was the method
10 by which it generated the script contents.
11
12 "Test::Inline::Content" provides a basic API by which more
13 sophisticated extensions can be written to control the content of the
14 generated scripts.
15
17 new
18 A default implementation of the "new" method is provided that takes no
19 parameters and creates a default (empty) object.
20
21 Returns a new "Test::Inline::Content" object.
22
23 process $Inline $Script
24 The "process" method does the work of generating the script content. It
25 takes as argument the parent Test::Inline object, and the completed
26 Test::Inline::Script object for which the file is to be generated.
27
28 The default implementation returns only an empty script that dies with
29 an appropriate error message.
30
31 Returns the content of the script as a string, or "undef" on error.
32
34 See the main SUPPORT section.
35
37 Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
38
40 Copyright 2004 - 2013 Adam Kennedy.
41
42 This program is free software; you can redistribute it and/or modify it
43 under the same terms as Perl itself.
44
45 The full text of the license can be found in the LICENSE file included
46 with this module.
47
48
49
50perl v5.28.0 2013-04-09 Test::Inline::Content(3)