| File: | blib/lib/App/Test/Generator/Template.pm |
| Coverage: | 96.6% |
| line | stmt | bran | cond | sub | time | code |
|---|---|---|---|---|---|---|
| 1 | package App::Test::Generator::Template; | |||||
| 2 | ||||||
| 3 | 21 21 21 | 127953 16 307 | use strict; | |||
| 4 | 21 21 21 | 33 18 382 | use warnings; | |||
| 5 | 21 21 21 | 418 11947 43 | use autodie qw(:all); | |||
| 6 | ||||||
| 7 | 21 21 21 | 54056 199 49 | use utf8; | |||
| 8 | 21 21 21 | 3918 6083 1316 | use Data::Section::Simple; | |||
| 9 | ||||||
| 10 | our $VERSION = '0.36'; | |||||
| 11 | ||||||
| 12 - 31 | =head1 NAME App::Test::Generator::Template - Template for the test files generated by App::Test::Generator =head1 VERSION Version 0.36 =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 | ||||||
| 33 | sub get_data_section | |||||
| 34 | { | |||||
| 35 | 86 | 184841 | if($_[0] && ($_[0] eq __PACKAGE__)) { | |||
| 36 | 83 | 90 | shift; | |||
| 37 | } | |||||
| 38 | ||||||
| 39 | 86 | 235 | return \Data::Section::Simple::get_data_section($_[0]); | |||
| 40 | } | |||||
| 41 | ||||||
| 42 | 1; | |||||
| 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 | ||||||