blib/lib/FormValidator/Lite/Constraint/Japanese.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 25 / 25 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/FormValidator/Lite/Constraint/Email.pm ↑ Summary blib/lib/FormValidator/Lite/Constraint/URL.pm »
1 package FormValidator::Lite::Constraint::Japanese;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use FormValidator::Lite::Constraint;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 4 ▶rule 'HIRAGANA' => sub { delsp($_) =~ /^\p{InHiragana}+$/ };
Subroutine __ANON__: called CC=1 SCAR=0.0
7 4 ▶rule 'KATAKANA' => sub { delsp($_) =~ /^\p{InKatakana}+$/ };
Subroutine __ANON__: called CC=1 SCAR=0.0
8 2 ▶rule 'JTEL' => sub { $_ =~ /^0\d+\-?\d+\-?\d+$/ };
Subroutine __ANON__: called CC=1 SCAR=0.0
9 2 ▶rule 'JZIP' => sub { $_ =~ /^\d{3}\-\d{4}$/ };
Subroutine __ANON__: called CC=1 SCAR=0.0
10  
11 1 1;
12 __END__
« blib/lib/FormValidator/Lite/Constraint/Email.pm ↑ Summary blib/lib/FormValidator/Lite/Constraint/URL.pm »