| File: | blib/lib/App/Test/Generator/Template.pm |
| Coverage: | 89.7% |
| line | stmt | bran | cond | sub | time | code |
|---|---|---|---|---|---|---|
| 1 | package App::Test::Generator::Template; | |||||
| 2 | ||||||
| 3 | 6 6 6 | 13 5 87 | use strict; | |||
| 4 | 6 6 6 | 12 4 142 | use warnings; | |||
| 5 | 6 6 6 | 12 4 12 | use autodie qw(:all); | |||
| 6 | ||||||
| 7 | 6 6 6 | 12410 6 9 | use utf8; | |||
| 8 | 6 6 6 | 1150 1711 410 | use Data::Section::Simple; | |||
| 9 | ||||||
| 10 | our $VERSION = '0.20'; | |||||
| 11 | ||||||
| 12 - 31 | =head1 NAME App::Test::Generator::Template - Template for the test file generated by App::Test::Generator =head1 VERSION Version 0.20 =head1 SYNOPSIS The template for the test file 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 | 13 | 34 | if($_[0] && ($_[0] eq __PACKAGE__)) { | |||
| 36 | 13 | 12 | shift; | |||
| 37 | } | |||||
| 38 | ||||||
| 39 | 13 | 24 | 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 | ||||||