blib/lib/Cikl/DataTypes/Email.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 32 / 32 CC 2 SCAR 2.0
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« testlib/Cikl/Models/Address/TestClass.pm ↑ Summary blib/lib/Cikl/DataTypes/Fqdn.pm »
1 package Cikl::DataTypes::Email;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Cikl::DataTypes::LowerCaseStr;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Mouse::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Mail::RFC822::Address qw/valid/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 subtype 'Cikl::DataTypes::Email',
10 as 'Cikl::DataTypes::LowerCaseStr',
11 21 ▶ where { valid($_) && $_ !~ /^\s+|\s+$/ },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
&valid($_) and not $_ =~ /^\s+|\s+$/ 7 14 21
12 16 ▶ message { "Invalid E-Mail address: $_"} ;
Subroutine __ANON__: called CC=1 SCAR=0.0
13 2 1;
14  
15  
16  
« testlib/Cikl/Models/Address/TestClass.pm ↑ Summary blib/lib/Cikl/DataTypes/Fqdn.pm »