File Coverage

inc/My/Module/Build.pm
Criterion Covered Total %
statement 12 18 66.6
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 24 66.6


line stmt bran cond sub pod time code
1             package My::Module::Build;
2              
3 1     1   7 use strict;
  1         14  
  1         66  
4 1     1   7 use warnings;
  1         3  
  1         140  
5              
6 1     1   1105 use Module::Build;
  1         107287  
  1         89  
7             our @ISA = qw{ Module::Build };
8              
9 1     1   11 use Carp;
  1         2  
  1         200  
10              
11             sub ACTION_authortest {
12 0     0 0   my ( $self, @args ) = @_;
13              
14 0           local $ENV{AUTHOR_TESTING} = 1;
15              
16 0           $self->depends_on( 'build' );
17 0           $self->test_files( qw{ t xt/author } );
18 0           $self->depends_on( 'test' );
19              
20 0           return;
21             }
22              
23             1;
24              
25             __END__
26              
27             =head1 NAME
28              
29             My::Module::Build - Extend Module::Build for Test2::Tools::LoadModule
30              
31             =head1 SYNOPSIS
32              
33             perl Build.PL
34             ./Build
35             ./Build test
36             ./Build authortest # supplied by this module
37             ./Build install
38              
39             =head1 DESCRIPTION
40              
41             This extension of L<Module::Build|Module::Build> adds the following
42             action to those provided by L<Module::Build|Module::Build>:
43              
44             authortest
45              
46             =head1 ACTIONS
47              
48             This module provides the following action:
49              
50             =over
51              
52             =item authortest
53              
54             This action runs not only those tests which appear in the F<t>
55             directory, but those that appear in the F<xt> directory. The F<xt> tests
56             are provided for information only, since some of them (notably
57             F<xt/critic.t> and F<xt/pod_spelling.t>) are very sensitive to the
58             configuration under which they run.
59              
60             Some of the F<xt> tests require modules that are not named as
61             requirements. These should disable themselves if the required modules
62             are not present.
63              
64             This test is sensitive to the C<verbose=1> argument, but not to the
65             C<--test_files> argument.
66              
67             =back
68              
69             =head1 SUPPORT
70              
71             Support is by the author. Please file bug reports at
72             L<https://rt.cpan.org/Public/Dist/Display.html?Name=Test2-Tools-LoadModule>,
73             L<https://github.com/trwyant/perl-Test2-Tools-LoadModule/issues>, or in
74             electronic mail to the author.
75              
76             =head1 AUTHOR
77              
78             Thomas R. Wyant, III F<wyant at cpan dot org>
79              
80             =head1 COPYRIGHT AND LICENSE
81              
82             Copyright (C) 2019-2026 by Thomas R. Wyant, III
83              
84             This program is free software; you can redistribute it and/or modify it
85             under the same terms as Perl 5.10.0. For more details, see the full text
86             of the licenses in the files F<LICENSE-Artistic> and F<LICENSE-GPL>.
87              
88             This program is distributed in the hope that it will be useful, but
89             without any warranty; without even the implied warranty of
90             merchantability or fitness for a particular purpose.
91              
92             =cut
93              
94             # ex: set textwidth=72 :