File Coverage

blib/lib/CPAN/Testers/API/Base.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 5     5   4419 use utf8;
  5         58  
  5         734  
2             package CPAN::Testers::API::Base;
3             our $VERSION = '0.018';
4             # ABSTRACT: Base module for importing standard modules, features, and subs
5              
6             #pod =head1 SYNOPSIS
7             #pod
8             #pod # lib/CPAN/Testers/API/MyModule.pm
9             #pod package CPAN::Testers::API::MyModule;
10             #pod use CPAN::Testers::API::Base;
11             #pod
12             #pod # t/mytest.t
13             #pod use CPAN::Testers::API::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::API> 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 5     5   1012 use strict;
  5         9  
  5         93  
36 5     5   24 use warnings;
  5         7  
  5         114  
37 5     5   21 use base 'Import::Base';
  5         7  
  5         1446  
38              
39             our @IMPORT_MODULES = (
40             'strict', 'warnings',
41             feature => [qw( :5.24 signatures refaliasing )],
42             '-warnings' => [qw( experimental::signatures experimental::refaliasing )],
43             );
44              
45             our %IMPORT_BUNDLES = (
46             Test => [
47             'Test::More', 'Test::Lib', 'Test::Mojo',
48             'Local::Schema' => [qw( prepare_temp_schema )],
49             'Local::App' => [qw( prepare_test_app )],
50             ],
51             );
52              
53             1;
54              
55             __END__
56              
57             =pod
58              
59             =head1 NAME
60              
61             CPAN::Testers::API::Base - Base module for importing standard modules, features, and subs
62              
63             =head1 VERSION
64              
65             version 0.018
66              
67             =head1 SYNOPSIS
68              
69             # lib/CPAN/Testers/API/MyModule.pm
70             package CPAN::Testers::API::MyModule;
71             use CPAN::Testers::API::Base;
72              
73             # t/mytest.t
74             use CPAN::Testers::API::Base 'Test';
75              
76             =head1 DESCRIPTION
77              
78             This module collectively imports all the required features and modules
79             into your module. This module should be used by all modules in the
80             L<CPAN::Testers::API> distribution. This module should not be used by
81             modules in other distributions.
82              
83             This module imports L<strict>, L<warnings>, and L<the sub signatures
84             feature|perlsub/Signatures>.
85              
86             =head1 SEE ALSO
87              
88             =over
89              
90             =item L<Import::Base>
91              
92             =back
93              
94             =head1 AUTHOR
95              
96             Doug Bell <preaction@cpan.org>
97              
98             =head1 COPYRIGHT AND LICENSE
99              
100             This software is copyright (c) 2016 by Doug Bell.
101              
102             This is free software; you can redistribute it and/or modify it under
103             the same terms as the Perl 5 programming language system itself.
104              
105             =cut