Widget/Constraint/Printable.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
regex
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::Widget::Constraint::Printable;
2  
3 use warnings;
4 use strict;
5 use base 'HTML::Widget::Constraint::Regex';
6  
7 =head1 NAME
8  
9 HTML::Widget::Constraint::Printable - Printable Constraint
10  
11 =head1 SYNOPSIS
12  
13 my $c = $widget->constraint( 'Printable', 'foo' );
14  
15 =head1 DESCRIPTION
16  
17 Printable Constraint.
18  
19 =head1 METHODS
20  
21 =head2 regex
22  
23 Provides a regex to validate printable characters.
24  
25 =cut
26  
27 sub regex {qr/^([[:print:]]*)$/}
28  
29 =head1 AUTHOR
30  
31 Sebastian Riedel, C<sri@oook.de>
32  
33 =head1 LICENSE
34  
35 This library is free software, you can redistribute it and/or modify it under
36 the same terms as Perl itself.
37  
38 =cut
39  
40 1;