En/Latn/Hk.pm

filter: Statementstmt 47.7% 42 / 88 Branchbran 0.0% 0 / 60 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 47.6% 10 / 21 Podpod n/a totaltotal 22.4% 52 / 232 CC 45 SCAR 72.7
CC
45
Cov
23%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1433.5
« En/Latn/Be.pm ↑ Summary En/Latn/Jm.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Hk - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Hk;
10 # This file auto generated from Data\common\main\en_HK.xml
11 # on Fri 17 Jan 12:03:31 pm GMT
12
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
16
17 1 our $VERSION = version->declare('v0.46.0');
18
19 1 ▶use v5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use feature 'unicode_strings';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 1 ▶use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
25
26 1 extends('Locale::CLDR::Locales::En::Latn::001');
27 has 'day_period_data' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
32 # Time in hhmm format
33 0 my ($self, $type, $time, $day_period_type) = @_;
34 0 ▶ $day_period_type //= 'default';
Condition0%0/2
$day_period_type //= "default"
l!l
00
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
Aresult
11
00
35 SWITCH:
36 0 for ($type) {
37 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
38 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
39 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
40 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
41 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
42 && $time < 1800;
43 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
44 && $time < 2100;
45 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
46 && $time < 1200;
47 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
48 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
49 }
50 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
51 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
52 && $time < 1800;
53 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
54 && $time < 2100;
55 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
56 && $time < 1200;
57 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
58 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
59 }
60 0 last SWITCH;
61 }
62 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
63 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
64 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
65 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
66 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
67 && $time < 1800;
68 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
69 && $time < 2100;
70 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
71 && $time < 1200;
72 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
73 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
74 }
75 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
76 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
77 && $time < 1800;
78 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2100 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2100
$time >= 1800 $time < 2100
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2100
ABresult
0X0
100
111
79 && $time < 2100;
80 0 ▶ return 'morning1' if $time >= 600
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 600 and $time < 1200 0 0 0
Condition0%0/3
$time >= 600 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 600 and $time < 1200
$time >= 600 $time < 1200
Truth table0%0/3
A and B
A= $time >= 600B= $time < 1200
ABresult
0X0
100
111
81 && $time < 1200;
82 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
83 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
84 }
85 0 last SWITCH;
86 }
87 }
88 0 } },
89 1 );
90
91 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
92 0 my ($orig, $self) = @_;
93 0 return $self->$orig;
94 1 };
95
96 has 'eras' => (
97 is => 'ro',
98 isa => HashRef,
99 init_arg => undef,
100 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
101 0 'generic' => {
102 },
103 'gregorian' => {
104 },
105 } },
106 1 );
107
108 has 'date_formats' => (
109 is => 'ro',
110 isa => HashRef,
111 init_arg => undef,
112 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
113 0 'generic' => {
114 'full' => q{EEEE, d MMMM, y G},
115 'long' => q{d MMMM, y G},
116 'medium' => q{d MMM, y G},
117 'short' => q{d/M/yy GGGGG},
118 },
119 'gregorian' => {
120 'full' => q{EEEE, d MMMM y},
121 'long' => q{d MMMM y},
122 'medium' => q{d MMM y},
123 'short' => q{d/M/y},
124 },
125 } },
126 1 );
127
128 has 'time_formats' => (
129 is => 'ro',
130 isa => HashRef,
131 init_arg => undef,
132 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
133 0 'generic' => {
134 },
135 'gregorian' => {
136 },
137 } },
138 1 );
139
140 has 'datetime_formats' => (
141 is => 'ro',
142 isa => HashRef,
143 init_arg => undef,
144 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
145 0 'generic' => {
146 },
147 'gregorian' => {
148 },
149 } },
150 1 );
151
152 has 'datetime_formats_available_formats' => (
153 is => 'ro',
154 isa => HashRef,
155 init_arg => undef,
156 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
157 0 'generic' => {
158 MMMMEd => q{E, d MMMM},
159 yyyyMEd => q{E, d/M/y GGGGG},
160 yyyyMMMEd => q{E, d MMM, y G},
161 yyyyMMMd => q{d MMM, y G},
162 yyyyMd => q{d/M/y GGGGG},
163 },
164 'gregorian' => {
165 MEd => q{E, d/M},
166 MMMMEd => q{E, d MMMM},
167 Md => q{d/M},
168 yM => q{M/y},
169 yMEd => q{E, d/M/y},
170 yMd => q{d/M/y},
171 },
172 } },
173 1 );
174
175 has 'datetime_formats_append_item' => (
176 is => 'ro',
177 isa => HashRef,
178 init_arg => undef,
179 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
180 0 } },
181 1 );
182
183 has 'datetime_formats_interval' => (
184 is => 'ro',
185 isa => HashRef,
186 init_arg => undef,
187 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
188 0 'generic' => {
189 MEd => {
190 M => q{E, d/M – E, d/M},
191 d => q{E, d/M – E, d/M},
192 },
193 MMMEd => {
194 M => q{E, d MMM – E, d MMM},
195 d => q{E, d MMM – E, d MMM},
196 },
197 Md => {
198 M => q{d/M – d/M},
199 d => q{d/M – d/M},
200 },
201 yMEd => {
202 M => q{E, d/M/y – E, d/M/y G},
203 d => q{E, d/M/y – E, d/M/y G},
204 y => q{E, d/M/y – E, d/M/y G},
205 },
206 yMMMEd => {
207 M => q{E, d MMM – E, d MMM, y G},
208 d => q{E, d MMM – E, d MMM, y G},
209 y => q{E, d MMM, y – E, d MMM, y G},
210 },
211 yMMMd => {
212 M => q{d MMM – d MMM, y G},
213 d => q{d – d MMM, y G},
214 y => q{d MMM, y – d MMM, y G},
215 },
216 yMd => {
217 M => q{d/M/y – d/M/y G},
218 d => q{d/M/y – d/M/y G},
219 y => q{d/M/y – d/M/y G},
220 },
221 },
222 'gregorian' => {
223 MEd => {
224 M => q{E, d/M – E, d/M},
225 d => q{E, d/M – E, d/M},
226 },
227 MMMEd => {
228 M => q{E, d MMM – E, d MMM},
229 d => q{E, d MMM – E, d MMM},
230 },
231 Md => {
232 M => q{d/M – d/M},
233 d => q{d/M – d/M},
234 },
235 yM => {
236 M => q{M/y – M/y},
237 y => q{M/y – M/y},
238 },
239 yMEd => {
240 M => q{E, d/M/y – E, d/M/y},
241 d => q{E, d/M/y – E, d/M/y},
242 y => q{E, d/M/y – E, d/M/y},
243 },
244 yMd => {
245 M => q{d/M/y – d/M/y},
246 d => q{d/M/y – d/M/y},
247 y => q{d/M/y – d/M/y},
248 },
249 },
250 } },
251 1 );
252
253 has 'time_zone_names' => (
254 is => 'ro',
255 isa => HashRef,
256 init_arg => undef,
257 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
258 0 'Hong_Kong' => {
259 short => {
260 'daylight' => q#HKST#,
261 'generic' => q#HKT#,
262 'standard' => q#HKT#,
263 },
264 },
265 } }
266 1 );
267 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
268
269 1 1;
270
271 # vim: tabstop=4
« En/Latn/Be.pm ↑ Summary En/Latn/Jm.pm »