File Coverage

File:blib/lib/App/Test/Generator/Template.pm
Coverage:89.7%

linestmtbrancondsubtimecode
1package App::Test::Generator::Template;
2
3
13
13
13
29
11
172
use strict;
4
13
13
13
22
12
234
use warnings;
5
13
13
13
20
7
24
use autodie qw(:all);
6
7
13
13
13
26420
11
26
use utf8;
8
13
13
13
2230
3626
841
use Data::Section::Simple;
9
10our $VERSION = '0.27';
11
12 - 31
=head1 NAME

App::Test::Generator::Template - Template for the test files generated by App::Test::Generator

=head1 VERSION

Version 0.27

=head1 SYNOPSIS

The template for the test files generated by App::Test::Generator.

=head1 METHODS

  get_data_section($template_file)

Returns a reference to the template.
The only value for C<$template_file>, for now, is test.tt.

=cut
32
33sub get_data_section
34{
35
16
43
        if($_[0] && ($_[0] eq __PACKAGE__)) {
36
16
13
                shift;
37        }
38
39
16
25
        return \Data::Section::Simple::get_data_section($_[0]);
40}
41
421;
43
44 - 52
=head1 AUTHOR

Nigel Horne, C<< <njh at nigelhorne.com> >>

Portions of this module's initial design and documentation were created with the
assistance of L<ChatGPT|https://openai.com/> (GPT-5), with final curation
and authorship by Nigel Horne.

=cut
53