Object/YearMonth.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Object/User.pm ↑ Summary Object/Catalog.pm »
1 package Toolforge::MixNMatch::Object::YearMonth;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use Mo qw(build is);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use Mo::utils qw(check_required);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 our $VERSION = 0.04;
10  
11 6 has count => (
12 is => 'ro',
13 required => 1,
14 );
15  
16 6 has month => (
17 is => 'ro',
18 required => 1,
19 );
20  
21 6 has year => (
22 is => 'ro',
23 required => 1,
24 );
25  
26 4 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
27 4 my $self = shift;
28  
29 4 check_required($self, 'count');
30 4 check_required($self, 'month');
31 4 check_required($self, 'year');
32  
33 4 return;
34 }
35  
36 6 1;
37  
38 __END__
« Object/User.pm ↑ Summary Object/Catalog.pm »