lib/HTML/FormFu/Constraint/SingleValue.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 89.4% 17 / 19 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
constrain_values
1.0
CRAP 1.0
« lib/HTML/FormFu/OutputProcessor.pm ↑ Summary lib/HTML/FormFu/Role/GetProcessors.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Constraint::SingleValue;
4 2 $HTML::FormFu::Constraint::SingleValue::VERSION = '2.06';
5 # ABSTRACT: Single Value Constraint
6  
7 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 extends 'HTML::FormFu::Constraint';
9  
10 sub constrain_values {
11 1 ▶ my ( $self, $values ) = @_;
Subroutine constrain_values: called CC=1 SCAR=0.0
Pod undocumented
12  
13 1 die;
14 }
15  
16 sub constrain_value {
17 4 ▶ return 1;
Subroutine constrain_value: called CC=1 SCAR=0.0
Pod undocumented
18 }
19  
20 2 __PACKAGE__->meta->make_immutable;
21  
22 2 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 HTML::FormFu::Constraint::SingleValue - Single Value Constraint
33  
34 =head1 VERSION
35  
36 version 2.06
37  
38 =head1 DESCRIPTION
39  
40 Ensures that multiple values were not submitted for the named element.
41  
42 This constraint doesn't honour the C<not()> value.
43  
44 =head1 SEE ALSO
45  
46 Is a sub-class of, and inherits methods from L<HTML::FormFu::Constraint>
47  
48 L<HTML::FormFu>
49  
50 =head1 AUTHOR
51  
52 Carl Franks C<cfranks@cpan.org>
53  
54 =head1 LICENSE
55  
56 This library is free software, you can redistribute it and/or modify it under
57 the same terms as Perl itself.
58  
59 =head1 AUTHOR
60  
61 Carl Franks <cpan@fireartist.com>
62  
63 =head1 COPYRIGHT AND LICENSE
64  
65 This software is copyright (c) 2018 by Carl Franks.
66  
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69  
70 =cut
« lib/HTML/FormFu/OutputProcessor.pm ↑ Summary lib/HTML/FormFu/Role/GetProcessors.pm »