PRANG/Cookbook/Role/Time.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod n/a totaltotal 61.2% 19 / 31 CC 4 SCAR 14.7
CC
4
Cov
64%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 4.3
« PRANG/XMLSchema/Types.pm ↑ Summary PRANG/Cookbook/Role/Date.pm »
1  
2 package PRANG::Cookbook::Role::Time;
3  
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 subtype 'PRANG::Cookbook::Hour'
9 => as 'Int',
10 => where {
11 0 ▶ $_ >= 1 and $_ <= 24;
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_ >= 1 and $_ <= 24 0 0 0
12 1 };
13  
14 subtype 'PRANG::Cookbook::Minute'
15 => as 'Int',
16 => where {
17 0 ▶ $_ >= 1 and $_ <= 60;
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_ >= 1 and $_ <= 60 0 0 0
18 1 };
19  
20 subtype 'PRANG::Cookbook::Second'
21 => as 'Int',
22 => where {
23 0 ▶ $_ >= 1 and $_ <= 60;
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_ >= 1 and $_ <= 60 0 0 0
24 1 };
25  
26 1 has_attr 'hour' =>
27 is => 'rw',
28 isa => 'PRANG::Cookbook::Hour',
29 xml_required => 1,
30 ;
31  
32 1 has_attr 'minute' =>
33 is => 'rw',
34 isa => 'PRANG::Cookbook::Minute',
35 xml_required => 1,
36 ;
37  
38 1 has_attr 'second' =>
39 is => 'rw',
40 isa => 'PRANG::Cookbook::Second',
41 xml_required => 0,
42 default => 0,
43 ;
44  
45 1 1;
« PRANG/XMLSchema/Types.pm ↑ Summary PRANG/Cookbook/Role/Date.pm »