blib/lib/Cikl/DataTypes/Asn.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 2 / 2 Conditioncond 100% 3 / 3 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 33 / 33 CC 3 SCAR 5.1
CC
3
Cov
100%
__ANON__
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« blib/lib/Cikl/Smrt/ParserHelpers/XPathMapping.pm ↑ Summary blib/lib/Cikl/Models/Address/asn.pm »
1 package Cikl::DataTypes::Asn;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Mouse::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use constant MAX_ASN => 2**32 - 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 subtype 'Cikl::DataTypes::Asn',
10 as 'Int',
11 16 ▶ where { $_ >= 0 && $_ <= MAX_ASN && $_ !~ /\s/},
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 1 branch
BranchTrueFalseTotal
$_ >= 0 and $_ <= 4294967295 and not $_ =~ /\s/ 12 4 16
Condition100%3/3
$_ >= 0 and $_ <= 4294967295
!ll&&!rl&&r
2212
MC/DC100%2/2
$_ >= 0 and $_ <= 4294967295
$_ >= 0 $_ <= 4294967295
Truth table100%3/3
A and B
A= $_ >= 0B= $_ <= 4294967295
ABresult
0X0
100
111
12 5 ▶ message { "Invalid ASN: $_"} ;
Subroutine __ANON__: called CC=1 SCAR=0.0
13 3 1;
14  
15  
« blib/lib/Cikl/Smrt/ParserHelpers/XPathMapping.pm ↑ Summary blib/lib/Cikl/Models/Address/asn.pm »