| 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 | 486 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 29 | ||||||
| 3 | 1 | 1 | 6 | use warnings; | |||
| 1 | 1 | ||||||
| 1 | 25 | ||||||
| 4 | |||||||
| 5 | 1 | 1 | 422 | use Ark::Plugin; | |||
| 1 | 3 | ||||||
| 1 | 3 | ||||||
| 6 | 1 | 1 | 526 | use FormValidator::Lite; | |||
| 1 | 19935 | ||||||
| 1 | 7 | ||||||
| 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; |