Open/DayGuide.pm

filter: Statementstmt 100% 35 / 35 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 100% 45 / 45 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Open/Broadcast.pm ↑ Summary Open/Document.pm »
1 # -*- cperl; cperl-indent-level: 4 -*-
2 # Copyright (C) 2011-2021, Roland van Ipenburg
3 package WWW::NOS::Open::DayGuide v1.0.5;
4 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use 5.014000;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶use Moose qw/around has with/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Moose::Util::TypeConstraints qw/enum/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use namespace::autoclean '-also' => qr/^__/sxm;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 4 ▶use WWW::NOS::Open::TypeDef qw(NOSDateTime NOSURI);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 4 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 4 Readonly::Array my @GUIDE_TYPES => qw(tv radio);
18  
19 4 has '_type' => (
20 'is' => 'ro',
21 'isa' => enum( [@GUIDE_TYPES] ),
22 'reader' => 'get_type',
23 'init_arg' => 'type',
24 );
25  
26 4 has '_date' => (
27 'is' => 'ro',
28 'isa' => NOSDateTime,
29 'coerce' => 1,
30 'reader' => 'get_date',
31 'init_arg' => 'date',
32 );
33  
34 4 has '_broadcasts' => (
35 'is' => 'ro',
36 'isa' => 'ArrayRef[WWW::NOS::Open::Broadcast]',
37 'reader' => 'get_broadcasts',
38 'init_arg' => 'broadcasts',
39 );
40  
41 4 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 4 __PACKAGE__->meta->make_immutable;
44  
45 4 1;
46  
47 __END__
« Open/Broadcast.pm ↑ Summary Open/Document.pm »