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