FormHandler/Field/Button.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::FormHandler::Field::Button;
2 # ABSTRACT: button field
3 $HTML::FormHandler::Field::Button::VERSION = '0.410001';
4 use Moose;
5 extends 'HTML::FormHandler::Field::NoValue';
6  
7  
8 has '+widget' => ( default => 'Button' );
9  
10 has '+value' => ( default => 'Button' );
11  
12 __PACKAGE__->meta->make_immutable;
13 use namespace::autoclean;
14 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 HTML::FormHandler::Field::Button - button field
25  
26 =head1 VERSION
27  
28 version 0.410001
29  
30 =head1 SYNOPSIS
31  
32 Use this field to declare a button field in your form.
33  
34 has_field 'button' => ( type => 'Button', value => 'Press Me!' );
35  
36 Uses the 'button' widget.
37  
38 =head1 AUTHOR
39  
40 FormHandler Contributors - see HTML::FormHandler
41  
42 =head1 COPYRIGHT AND LICENSE
43  
44 This software is copyright (c) 2017 by Gerda Shank.
45  
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48  
49 =cut