line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dancer2::Plugin::DataTransposeValidator; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
597795
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use Dancer2; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
12845
|
use Dancer2::Plugin; |
|
1
|
|
|
|
|
2513
|
|
|
1
|
|
|
|
|
7
|
|
8
|
1
|
|
|
1
|
|
2734
|
use aliased 'Dancer::Plugin::DataTransposeValidator::Validator'; |
|
1
|
|
|
|
|
700
|
|
|
1
|
|
|
|
|
6
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Dancer2::Plugin::DataTransposeValidator - Data::Transpose::Validator plugin for Dancer2 |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
register validator => sub { |
17
|
9
|
|
|
9
|
|
322531
|
my ( $dsl, $params, $rules_file, @additional_args ) = @_; |
18
|
|
|
|
|
|
|
|
19
|
9
|
100
|
|
|
|
69
|
Validator->new( |
20
|
|
|
|
|
|
|
additional_args => @additional_args ? [@additional_args] : [], |
21
|
|
|
|
|
|
|
appdir => $dsl->setting('appdir'), |
22
|
|
|
|
|
|
|
params => $params, |
23
|
|
|
|
|
|
|
plugin_setting => plugin_setting, |
24
|
|
|
|
|
|
|
rules_file => $rules_file |
25
|
|
|
|
|
|
|
)->transpose; |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
register_plugin; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |