lib/Net/EGTS/Types.pm

filter: Statementstmt 85.4% 41 / 48 Branchbran 26.9% 7 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 61.1% 11 / 18 Podpod n/a totaltotal 64.1% 59 / 92 CC 14 SCAR 9.3
CC
14
Cov
65%
__ANON__
3.7
__ANON__
3.7
__ANON__
3.7
CRAP 2.5
« lib/Net/EGTS/Simple.pm ↑ Summary lib/Net/EGTS/Packet/SignedAppdata.pm »
1 15 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Net::EGTS::Types;
4 15 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 15 ▶use Mouse::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 15 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 15 subtype 'BOOLEAN', as 'Bool';
9 316 ▶subtype 'BYTE', as 'Int', where { 0 <= $_ && $_ < 2 ** 8 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 256 316 0 316
10 137 ▶subtype 'USHORT', as 'Int', where { 0 <= $_ && $_ < 2 ** 16 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 65536 137 0 137
11 30 ▶subtype 'UINT', as 'Int', where { 0 <= $_ && $_ < 2 ** 32 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < "4294967296" 30 0 30
12 0 ▶subtype 'ULONG', as 'Int', where { 0 <= $_ && $_ < 2 ** 64 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < "1.84467440737096e+19" 0 0 0
13 3 ▶subtype 'SHORT', as 'Int', where { -(2 ** 15) <= $_ && $_ < 2 ** 15 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
-32768 <= $_ and $_ < 32768 3 0 3
14 0 ▶subtype 'INT', as 'Int', where { -(2 ** 31) <= $_ && $_ < 2 ** 31 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
"-2147483648" <= $_ and $_ < "2147483648" 0 0 0
15 15 subtype 'FLOAT', as 'Num';
16 15 subtype 'DOUBLE', as 'Num';
17 15 subtype 'STRING', as 'Str';
18 15 subtype 'BINARY', as 'Str';
19  
20 15 subtype 'BINARY3', as 'Str';#, where { length($_) == 3 };
21  
22 15 subtype 'BIT1', as 'Bool';
23 123 ▶subtype 'BIT2', as 'Int', where { 0 <= $_ && $_ < 2 ** 2 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 4 123 0 123
24 0 ▶subtype 'BIT3', as 'Int', where { 0 <= $_ && $_ < 2 ** 3 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 8 0 0 0
25 0 ▶subtype 'BIT4', as 'Int', where { 0 <= $_ && $_ < 2 ** 4 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 16 0 0 0
26 0 ▶subtype 'BIT5', as 'Int', where { 0 <= $_ && $_ < 2 ** 5 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 32 0 0 0
27 9 ▶subtype 'BIT6', as 'Int', where { 0 <= $_ && $_ < 2 ** 6 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 64 9 0 9
28 0 ▶subtype 'BIT7', as 'Int', where { 0 <= $_ && $_ < 2 ** 7 };
Subroutine __ANON__: not called CC=2 SCAR=13.0
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 128 0 0 0
29 9 ▶subtype 'BIT8', as 'Int', where { 0 <= $_ && $_ < 2 ** 8 };
Subroutine __ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
BranchTrueFalseTotal
0 <= $_ and $_ < 256 9 0 9
30  
31 0 ▶subtype 'uInt', as 'Int', where { 0 <= $_ };
Subroutine __ANON__: not called CC=1 SCAR=1.2
32  
33 15 __PACKAGE__->meta->make_immutable();
« lib/Net/EGTS/Simple.pm ↑ Summary lib/Net/EGTS/Packet/SignedAppdata.pm »