Language/FR.pm

filter: Statementstmt 61.5% 8 / 13 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 54.5% 12 / 22 CC 3 SCAR 11.2
CC
3
Cov
53%
__ANON__
6.0
__ANON__
2.1
new
1.2
CRAP 3.1
« Language/EN.pm ↑ Summary Language.pm »
1 package String::Validator::Language::FR ;
2 1 $String::Validator::Language::FR::VERSION = '2.04';
3 3 ▶sub new {
Subroutine new: called CC=1 SCAR=1.4
Pod undocumented
4 return {
5 common_strings_not_match => 'Les chaînes de caractères ne correspondent pas.',
6 common_tooshort => " Ne respecte pas la longeur minimale imposée ",
7 common_toolong => " Ne respecte pas la longueur maximal imposée ",
8 1 ▶ password_mintypes => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
9 1 my $self = shift @_;
10 1 return "$self->{types_found} contraintes ont été trouvées, $self->{min_types} est requis.";
11 },
12 0 ▶ password_minoftype => sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
13 0 my ( $required, $type ) = @_;
14 0 ▶ if ( $type eq 'num') { $type = 'numérique'}
Branch: 1 branch
BranchTrueFalseTotal
if ($type eq "num") 0 0 0
15 0 return "A pire $required caractères de $type est requis.";
16 },
17 1 ▶ password_typeprohibit => sub {
Subroutine __ANON__: called CC=2 SCAR=7.6
18 1 my $type = shift @_;
19 0 ▶ if ( $type eq 'num') { $type = 'numérique'}
Branch: 1 branch
BranchTrueFalseTotal
if ($type eq "num") 0 1 1
20 1 return "Caractères de $type est interdit."
21 },
22 }
23 3 }
24  
25 1 1;
26  
27 __END__
« Language/EN.pm ↑ Summary Language.pm »