File Coverage

blib/lib/CPAN/Testers/Backend/Base.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1 2     2   66771 use utf8;
  2         37  
  2         8  
2             package CPAN::Testers::Backend::Base;
3             our $VERSION = '0.003';
4             # ABSTRACT: Base module for importing standard modules, features, and subs
5              
6             #pod =head1 SYNOPSIS
7             #pod
8             #pod # lib/CPAN/Testers/Backend/MyModule.pm
9             #pod package CPAN::Testers::Backend::MyModule;
10             #pod use CPAN::Testers::Backend::Base;
11             #pod
12             #pod # t/mytest.t
13             #pod use CPAN::Testers::Backend::Base 'Test';
14             #pod
15             #pod =head1 DESCRIPTION
16             #pod
17             #pod This module collectively imports all the required features and modules
18             #pod into your module. This module should be used by all modules in the
19             #pod L<CPAN::Testers::Backend> distribution. This module should not be used by
20             #pod modules in other distributions.
21             #pod
22             #pod This module imports L<strict>, L<warnings>, and L<the sub signatures
23             #pod feature|perlsub/Signatures>.
24             #pod
25             #pod =head1 SEE ALSO
26             #pod
27             #pod =over
28             #pod
29             #pod =item L<Import::Base>
30             #pod
31             #pod =back
32             #pod
33             #pod =cut
34              
35 2     2   107 use strict;
  2         4  
  2         30  
36 2     2   9 use warnings;
  2         3  
  2         38  
37 2     2   9 use base 'Import::Base';
  2         3  
  2         617  
38 2     2   9958 use experimental 'signatures';
  2         7757  
  2         17  
39              
40             our @IMPORT_MODULES = (
41             'strict', 'warnings',
42             feature => [qw( :5.24 signatures refaliasing )],
43             '>-warnings' => [qw( experimental::signatures experimental::refaliasing )],
44             );
45              
46             our %IMPORT_BUNDLES = (
47             Runnable => [
48             'Moo',
49             'Types::Standard' => [qw( InstanceOf )],
50             'Log::Any' => [qw( $LOG )],
51             'Log::Any::Adapter' => [qw( Syslog )],
52             'Getopt::Long' => [qw( GetOptionsFromArray )],
53             ],
54             Test => [
55             'Test::More',
56             ],
57             );
58              
59             1;
60              
61             __END__
62              
63             =pod
64              
65             =head1 NAME
66              
67             CPAN::Testers::Backend::Base - Base module for importing standard modules, features, and subs
68              
69             =head1 VERSION
70              
71             version 0.003
72              
73             =head1 SYNOPSIS
74              
75             # lib/CPAN/Testers/Backend/MyModule.pm
76             package CPAN::Testers::Backend::MyModule;
77             use CPAN::Testers::Backend::Base;
78              
79             # t/mytest.t
80             use CPAN::Testers::Backend::Base 'Test';
81              
82             =head1 DESCRIPTION
83              
84             This module collectively imports all the required features and modules
85             into your module. This module should be used by all modules in the
86             L<CPAN::Testers::Backend> distribution. This module should not be used by
87             modules in other distributions.
88              
89             This module imports L<strict>, L<warnings>, and L<the sub signatures
90             feature|perlsub/Signatures>.
91              
92             =head1 SEE ALSO
93              
94             =over
95              
96             =item L<Import::Base>
97              
98             =back
99              
100             =head1 AUTHOR
101              
102             Doug Bell <preaction@cpan.org>
103              
104             =head1 COPYRIGHT AND LICENSE
105              
106             This software is copyright (c) 2017 by Doug Bell.
107              
108             This is free software; you can redistribute it and/or modify it under
109             the same terms as the Perl 5 programming language system itself.
110              
111             =cut