lib/HTML/FormFu/Constraint/Printable.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
regex
1.0
CRAP 1.0
« lib/HTML/FormFu/Constraint/MinLength.pm ↑ Summary lib/HTML/FormFu/Constraint/Word.pm »
1 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Constraint::Printable;
4 4 $HTML::FormFu::Constraint::Printable::VERSION = '2.09';
5 # ABSTRACT: Printable Characters Constraint
6  
7 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 extends 'HTML::FormFu::Constraint::Regex';
9  
10 8 ▶sub regex {
Subroutine regex: called CC=1 SCAR=0.0
Pod documented
11 8 return qr/^\p{IsPrint}*\z/;
12 }
13  
14 4 __PACKAGE__->meta->make_immutable;
15  
16 4 1;
17  
18 __END__
« lib/HTML/FormFu/Constraint/MinLength.pm ↑ Summary lib/HTML/FormFu/Constraint/Word.pm »