File Coverage

lib/Dist/Zilla/Plugin/CSJEWELL/AuthorTest.pm
Criterion Covered Total %
statement 11 15 73.3
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 15 21 71.4


line stmt bran cond sub pod time code
1             package Dist::Zilla::Plugin::CSJEWELL::AuthorTest;
2              
3 1     1   2041 use 5.008003;
  1         4  
4 1     1   6 use Moose;
  1         3  
  1         10  
5 1     1   7849 use Module::Build;
  1         3  
  1         195  
6             with 'Dist::Zilla::Role::TestRunner';
7              
8             our $VERSION = '0.993';
9              
10             sub test {
11 0     0 0   my ($self, $test_dir) = @_;
12              
13             # This has the same effect as
14             # "perl Build.PL && Build authortest",
15             # only in code.
16 0           my $builder = Module::Build->new_from_context;
17 0           $builder->ACTION_authortest;
18              
19 0           return 1;
20             }
21              
22             __PACKAGE__->meta->make_immutable;
23 1     1   8 no Moose;
  1         2  
  1         8  
24             1;
25              
26             __END__
27              
28             =pod
29              
30             =head1 NAME
31              
32             Dist::Zilla::Plugin::CSJEWELL::AuthorTest - Let Module::Build run the author tests.
33              
34             =head1 VERSION
35              
36             This document describes Dist::Zilla::Plugin::CSJEWELL::AuthorTest version 0.900.
37              
38             =head1 DESCRIPTION
39              
40             This plugin asks Module::Build to run the tests in t/ and xt/author.
41              
42             =for Pod::Coverage test
43              
44             =head1 AUTHOR
45              
46             Curtis Jewell <CSJewell@cpan.org>
47              
48             =head1 SEE ALSO
49              
50             L<Dist::Zilla::BeLike::CSJEWELL|Dist::Zilla::BeLike::CSJEWELL>
51              
52             =head1 LICENSE AND COPYRIGHT
53              
54             Copyright (c) 2010, Curtis Jewell C<< CSJewell@cpan.org >>.
55              
56             This module is free software; you can redistribute it and/or
57             modify it under the same terms as Perl itself, either version
58             5.8.1 or any later version. See L<perlartistic|perlartistic>
59             and L<perlgpl|perlgpl>.
60              
61             The full text of the license can be found in the
62             LICENSE file included with this module.
63              
64             =head1 DISCLAIMER OF WARRANTY
65              
66             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
67             FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
68             OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
69             PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
70             EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
71             WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
72             ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
73             YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
74             NECESSARY SERVICING, REPAIR, OR CORRECTION.
75              
76             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
77             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
78             REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
79             LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
80             OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
81             THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
82             RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
83             FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
84             SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
85             SUCH DAMAGES.
86              
87             =cut
88