Quantity/Time/MonthOfYear.pm

filter: Statementstmt 82.3% 14 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 65.3% 17 / 26 CC 2 SCAR 10.4
CC
2
Cov
74%
zero_padded
6.0
scale
2.0
BEGIN
1.0
CRAP 2.8
« Quantity/Number/Number.pm ↑ Summary Quantity/Time/DayOfMonth.pm »
1 ### Change History
2 # 1998-12-03 Factored out Data::Quantity::Abstract::InstanceIndex superclass.
3 # 1998-12-02 Created. -Simon
4  
5 package Data::Quantity::Time::MonthOfYear;
6  
7 2 require 5;
8 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 $VERSION = 0.001;
12  
13 2 ▶use Data::Quantity::Abstract::InstanceIndex '-isasubclass';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 # undef = Data::Quantity::Time::MonthOfYear->scale();
16 0 ▶sub scale {
Subroutine scale: not called CC=1 SCAR=6.9
Pod undocumented
17 0 return 'MonthOfYear';
18 }
19  
20 2 Data::Quantity::Time::MonthOfYear->instances();
21 2 Data::Quantity::Time::MonthOfYear->instances( [
22 {
23 },
24 {
25 'name' => 'January',
26 'short' => 'Jan',
27 },
28 {
29 'name' => 'February',
30 'short' => 'Feb',
31 },
32 {
33 'name' => 'March',
34 'short' => 'Mar',
35 },
36 {
37 'name' => 'April',
38 'short' => 'Apr',
39 },
40 {
41 'name' => 'May',
42 'short' => 'May',
43 },
44 {
45 'name' => 'June',
46 'short' => 'Jun',
47 },
48 {
49 'name' => 'July',
50 'short' => 'Jul',
51 },
52 {
53 'name' => 'August',
54 'short' => 'Aug',
55 },
56 {
57 'name' => 'September',
58 'short' => 'Sep',
59 },
60 {
61 'name' => 'October',
62 'short' => 'Oct',
63 },
64 {
65 'name' => 'November',
66 'short' => 'Nov',
67 },
68 {
69 'name' => 'December',
70 'short' => 'Dec',
71 },
72 ] );
73  
74  
75 # $padded = $quantity->zero_padded();
76 0 ▶sub zero_padded {
Subroutine zero_padded: not called CC=2 SCAR=17.9
Pod undocumented
77 0 my $date = shift;
78 0 ▶ $date->SUPER::zero_padded( scalar @_ ? @_ : 2 );
Branch: 1 branch
BranchTrueFalseTotal
scalar @_ ? : 0 0 0
79 }
80  
81 2 1;
« Quantity/Number/Number.pm ↑ Summary Quantity/Time/DayOfMonth.pm »