1Test::Inline::Content::USsiemrplCeo(n3t)ributed Perl DocTuemsetn:t:aItniloinne::Content::Simple(3)
2
3
4

NAME

6       Test::Inline::Content::Simple - Simple templating Content Handler
7

SYNOPSIS

9         In your inline2test.tpl
10         ----------------------
11         #!/usr/bin/perl -w
12
13         use strict;
14         use Test::More [% plan %];
15         $| = 1;
16
17
18
19         [% tests %]
20
21
22
23         1;
24

DESCRIPTION

26       It is relatively common to want to customise the contents of the
27       generated test files to set up custom environment things on an all-
28       scripts basis, rather than file by file (using =begin SETUP blocks).
29
30       "Test::Inline::Content::Simple" lets you use a very simple Template
31       Toolkit style template to define this information.
32
33       It contains only two tags, "plan" and "tests".
34
35       The "plan" tag will be inserted as either "tests =" 123> or 'no_plan'.
36
37       The "tests" tag will be replaced by the actual testing code.
38

METHODS

40   new $filename
41       Manually create a new "Test::Inline::Content::Simple" object. Takes as
42       parameter a single filename which should contain the template code.
43
44       Returns a new "Test::Inline::Content::Simple" object, or "undef" on
45       error.
46
47   template
48       The "template" accessor returns the template content for the object
49
50   process $Inline, $Script
51       The "process" method is unchanged from "Test::Inline::Content".
52

SUPPORT

54       See the main SUPPORT section.
55

AUTHOR

57       Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
58
60       Copyright 2004 - 2013 Adam Kennedy.
61
62       This program is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65       The full text of the license can be found in the LICENSE file included
66       with this module.
67
68
69
70perl v5.30.0                      2019-07-26  Test::Inline::Content::Simple(3)
Impressum