1Test::Inline::Content::USsiemrplCeo(n3t)ributed Perl DocTuemsetn:t:aItniloinne::Content::Simple(3)
2
3
4
6 Test::Inline::Content::Simple - Simple templating Content Handler
7
9 In your inline2test.tpl
10 ----------------------
11 #!/usr/bin/perl -w
12
13 use strict;
14 use Test::More [% plan %];
15 $⎪ = 1;
16
17 [% tests %]
18
19 1;
20
22 It is relatively common to want to customise the contents of the gener‐
23 ated test files to set up custom environment things on an all-scripts
24 basis, rather than file by file (using =begin SETUP blocks).
25
26 "Test::Inline::Content::Simple" lets you use a very simple Template
27 Toolkit style template to define this information.
28
29 It contains only two tags, "plan" and "tests".
30
31 The "plan" tag will be inserted as either "tests =" 123> or 'no_plan'.
32
33 The "tests" tag will be replaced by the actual testing code.
34
36 new $filename
37
38 Manually create a new "Test::Inline::Content::Simple" object. Takes as
39 parameter a single filename which should contain the template code.
40
41 Returns a new "Test::Inline::Content::Simple" object, or "undef" on
42 error.
43
44 template
45
46 The "template" accessor returns the template content for the object
47
48 process $Inline, $Script
49
50 The "process" method is unchanged from "Test::Inline::Content".
51
53 See the main SUPPORT section.
54
56 Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
57
59 Copyright 2004 - 2007 Adam Kennedy.
60
61 This program is free software; you can redistribute it and/or modify it
62 under the same terms as Perl itself.
63
64 The full text of the license can be found in the LICENSE file included
65 with this module.
66
67
68
69perl v5.8.8 2007-08-17 Test::Inline::Content::Simple(3)