File Coverage

blib/lib/HTML/FormFu/Constraint/Integer.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 11 11 100.0


line stmt bran cond sub pod time code
1 11     11   1000 use strict;
  11         26  
  11         738  
2              
3             package HTML::FormFu::Constraint::Integer;
4             $HTML::FormFu::Constraint::Integer::VERSION = '2.07';
5             # ABSTRACT: Unsigned Integer Constraint
6              
7 11     11   82 use Moose;
  11         24  
  11         95  
8             extends 'HTML::FormFu::Constraint::Regex';
9              
10 56     56 1 263 sub regex {qr/^[0-9]*\z/}
11              
12             __PACKAGE__->meta->make_immutable;
13              
14             1;
15              
16             __END__
17              
18             =pod
19              
20             =encoding UTF-8
21              
22             =head1 NAME
23              
24             HTML::FormFu::Constraint::Integer - Unsigned Integer Constraint
25              
26             =head1 VERSION
27              
28             version 2.07
29              
30             =head1 DESCRIPTION
31              
32             Integer constraint.
33              
34             =head1 SEE ALSO
35              
36             Is a sub-class of, and inherits methods from L<HTML::FormFu::Constraint::Regex>,
37             L<HTML::FormFu::Constraint>
38              
39             L<HTML::FormFu>
40              
41             =head1 AUTHOR
42              
43             Carl Franks, C<cfranks@cpan.org>
44              
45             Based on the original source code of L<HTML::Widget::Constraint::Integer>, by
46             Sebastian Riedel, C<sri@oook.de>.
47              
48             =head1 LICENSE
49              
50             This library is free software, you can redistribute it and/or modify it under
51             the same terms as Perl itself.
52              
53             =head1 AUTHOR
54              
55             Carl Franks <cpan@fireartist.com>
56              
57             =head1 COPYRIGHT AND LICENSE
58              
59             This software is copyright (c) 2018 by Carl Franks.
60              
61             This is free software; you can redistribute it and/or modify it under
62             the same terms as the Perl 5 programming language system itself.
63              
64             =cut