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