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

VERSION

9       version 2.214
10

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

SUPPORT

57       See the main SUPPORT section.
58
59       Bugs may be submitted through the RT bug tracker
60       <https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Inline> (or
61       bug-Test-Inline@rt.cpan.org <mailto:bug-Test-Inline@rt.cpan.org>).
62

AUTHOR

64       Adam Kennedy <adamk@cpan.org>
65
67       This software is copyright (c) 2003 by Adam Kennedy.
68
69       This is free software; you can redistribute it and/or modify it under
70       the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.38.0                      2023-07-21  Test::Inline::Content::Simple(3)
Impressum