blib/lib/Ark/Plugin/FormValidator/Lite.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 | package Ark::Plugin::FormValidator::Lite; | ||||||
2 | 1 | 1 | 542 | use strict; | |||
1 | 2 | ||||||
1 | 30 | ||||||
3 | 1 | 1 | 6 | use warnings; | |||
1 | 3 | ||||||
1 | 28 | ||||||
4 | |||||||
5 | 1 | 1 | 411 | use Ark::Plugin; | |||
1 | 3 | ||||||
1 | 5 | ||||||
6 | 1 | 1 | 497 | use FormValidator::Lite; | |||
1 | 20487 | ||||||
1 | 8 | ||||||
7 | |||||||
8 | has validator => ( | ||||||
9 | is => 'ro', | ||||||
10 | isa => 'FormValidator::Lite', | ||||||
11 | lazy => 1, | ||||||
12 | default => sub { | ||||||
13 | my ($c) = @_; | ||||||
14 | FormValidator::Lite->load_constraints(qw/Japanese/); | ||||||
15 | FormValidator::Lite->new( $c->request ); | ||||||
16 | }, | ||||||
17 | ); | ||||||
18 | |||||||
19 | 1; |