NAME
App::Test::Generator::Template - Template for the test files generated by App::Test::Generator
VERSION
Version 0.40
SYNOPSIS
The template for the test files generated by App::Test::Generator.
METHODS
get_data_section
Returns a reference to the named template, read from this module's __DATA__ section via Data::Section::Simple.
my $template_ref = App::Test::Generator::Template->get_data_section('test.tt');
my $template_ref = App::Test::Generator::Template::get_data_section('test.tt');
Arguments
$template_fileThe name of the
@@-delimited section to retrieve. The only value currently defined in this module's__DATA__section istest.tt. May be called either as a class method (Template->get_data_section(...), in which case the leading class-name argument is stripped before lookup) or as a plain function.
Returns
A scalar reference to the template content. If $template_file does not match a defined @@ section, returns a reference to undef.
Side Effects
None. Does not write to disk or modify any global state.
API specification
input
{
template_file => { type => SCALAR, optional => 1 },
}
output
{ type => SCALARREF }
AUTHOR
Nigel Horne, <njh at nigelhorne.com>
Portions of this module's initial design and documentation were created with the assistance of ChatGPT (GPT-5), with final curation and authorship by Nigel Horne.