File Coverage

blib/lib/HTML/FormFu/Exception/Validator.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 2 0.0
total 12 14 85.7


line stmt bran cond sub pod time code
1 4     4   31 use strict;
  4         10  
  4         243  
2              
3             package HTML::FormFu::Exception::Validator;
4             # ABSTRACT: Validator exception
5             $HTML::FormFu::Exception::Validator::VERSION = '2.07';
6 4     4   25 use Moose;
  4         10  
  4         25  
7             extends 'HTML::FormFu::Exception::Input';
8              
9             sub stage {
10 1     1 0 24 return 'validator';
11             }
12              
13             sub validator {
14 2     2 0 67 return shift->processor(@_);
15             }
16              
17             around render_data_non_recursive => sub {
18             my ( $orig, $self, $args ) = @_;
19              
20             my $render = $self->$orig(
21             { stage => $self->stage,
22             validator => $self->validator,
23             $args ? %$args : (),
24             } );
25              
26             return $render;
27             };
28              
29             __PACKAGE__->meta->make_immutable;
30              
31             1;
32              
33             __END__
34              
35             =pod
36              
37             =encoding UTF-8
38              
39             =head1 NAME
40              
41             HTML::FormFu::Exception::Validator - Validator exception
42              
43             =head1 VERSION
44              
45             version 2.07
46              
47             =head1 AUTHOR
48              
49             Carl Franks <cpan@fireartist.com>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This software is copyright (c) 2018 by Carl Franks.
54              
55             This is free software; you can redistribute it and/or modify it under
56             the same terms as the Perl 5 programming language system itself.
57              
58             =cut