| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package App::DBCritic::PolicyType; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: Role for types of database criticism policies |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
6
|
|
|
|
|
|
|
#pod |
|
7
|
|
|
|
|
|
|
#pod package App::DBCritic::PolicyType::ResultClass; |
|
8
|
|
|
|
|
|
|
#pod use Moo; |
|
9
|
|
|
|
|
|
|
#pod with 'App::DBCritic::PolicyType'; |
|
10
|
|
|
|
|
|
|
#pod 1; |
|
11
|
|
|
|
|
|
|
#pod |
|
12
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
13
|
|
|
|
|
|
|
#pod |
|
14
|
|
|
|
|
|
|
#pod This is a L consumed by all L |
|
15
|
|
|
|
|
|
|
#pod policy types. |
|
16
|
|
|
|
|
|
|
#pod |
|
17
|
|
|
|
|
|
|
#pod =cut |
|
18
|
|
|
|
|
|
|
|
|
19
|
5
|
|
|
5
|
|
2739
|
use strict; |
|
|
5
|
|
|
|
|
13
|
|
|
|
5
|
|
|
|
|
143
|
|
|
20
|
5
|
|
|
5
|
|
23
|
use utf8; |
|
|
5
|
|
|
|
|
12
|
|
|
|
5
|
|
|
|
|
23
|
|
|
21
|
5
|
|
|
5
|
|
117
|
use Modern::Perl '2011'; ## no critic (Modules::ProhibitUseQuotedVersion) |
|
|
5
|
|
|
|
|
11
|
|
|
|
5
|
|
|
|
|
26
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
our $VERSION = '0.023'; # VERSION |
|
24
|
|
|
|
|
|
|
require Devel::Symdump; |
|
25
|
5
|
|
|
5
|
|
4002
|
use List::MoreUtils; |
|
|
5
|
|
|
|
|
63205
|
|
|
|
5
|
|
|
|
|
34
|
|
|
26
|
5
|
|
|
5
|
|
4814
|
use Moo::Role; |
|
|
5
|
|
|
|
|
13
|
|
|
|
5
|
|
|
|
|
51
|
|
|
27
|
5
|
|
|
5
|
|
2074
|
use Sub::Quote; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
484
|
|
|
28
|
5
|
|
|
5
|
|
38
|
use namespace::autoclean -also => qr{\A _}xms; |
|
|
5
|
|
|
|
|
10
|
|
|
|
5
|
|
|
|
|
55
|
|
|
29
|
|
|
|
|
|
|
with 'App::DBCritic::Policy'; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
has applies_to => ( |
|
32
|
|
|
|
|
|
|
is => 'ro', |
|
33
|
|
|
|
|
|
|
lazy => 1, |
|
34
|
|
|
|
|
|
|
## no critic (ValuesAndExpressions::RequireInterpolationOfMetachars) |
|
35
|
|
|
|
|
|
|
default => quote_sub( <<'END_SUB' => { '$package' => \__PACKAGE__ } ), |
|
36
|
|
|
|
|
|
|
[ List::MoreUtils::apply {s/\A .+ :://xms} |
|
37
|
|
|
|
|
|
|
grep { shift->does($_) } Devel::Symdump->packages($package), |
|
38
|
|
|
|
|
|
|
]; |
|
39
|
|
|
|
|
|
|
END_SUB |
|
40
|
|
|
|
|
|
|
); |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
#pod =attr applies_to |
|
43
|
|
|
|
|
|
|
#pod |
|
44
|
|
|
|
|
|
|
#pod Returns an array reference containing the last component of all the |
|
45
|
|
|
|
|
|
|
#pod C roles composed into the consuming class. |
|
46
|
|
|
|
|
|
|
#pod |
|
47
|
|
|
|
|
|
|
#pod =cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |