En/Latn/Nz.pm

filter: Statementstmt 58.8% 53 / 90 Branchbran 0.0% 0 / 60 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 90.9% 20 / 22 Podpod n/a totaltotal 31.0% 73 / 235 CC 45 SCAR 72.5
CC
45
Cov
28%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1411.7
« En/Latn/Sg.pm ↑ Summary En/Latn/Dk.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Nz - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Nz;
10 # This file auto generated from Data\common\main\en_NZ.xml
11 # on Fri 17 Jan 12:03:31 pm GMT
12
13 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 2 ▶use version;
Subroutine BEGIN: called CC=1 SCAR=0.0
16
17 2 our $VERSION = version->declare('v0.46.0');
18
19 2 ▶use v5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶use mro 'c3';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use feature 'unicode_strings';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 2 ▶use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
Subroutine BEGIN: called CC=1 SCAR=0.0
24 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
25
26 2 extends('Locale::CLDR::Locales::En::Latn::001');
27 has 'currencies' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
32 1 'NZD' => {
33 symbol => '$',
34 },
35 } },
36 2 );
37
38
39 has 'day_period_data' => (
40 is => 'ro',
41 isa => CodeRef,
42 init_arg => undef,
43 1 ▶ default => sub { sub {
Subroutine __ANON__: called CC=1 SCAR=6.8
Subroutine __ANON__: not called CC=45 SCAR=76.4
44 # Time in hhmm format
45 0 my ($self, $type, $time, $day_period_type) = @_;
46 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
47 SWITCH:
48 0 for ($type) {
49 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
50 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
51 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
52 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
53 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
54 && $time < 1800;
55 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
56 && $time < 2100;
57 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
58 && $time < 1200;
59 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
60 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
61 }
62 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
63 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
64 && $time < 1800;
65 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
66 && $time < 2100;
67 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
68 && $time < 1200;
69 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
70 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
71 }
72 0 last SWITCH;
73 }
74 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
75 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
76 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
77 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
78 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
79 && $time < 1800;
80 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
81 && $time < 2100;
82 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
83 && $time < 1200;
84 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
85 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
86 }
87 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
88 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
89 && $time < 1800;
90 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
91 && $time < 2100;
92 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
93 && $time < 1200;
94 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
95 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
96 }
97 0 last SWITCH;
98 }
99 }
100 1 } },
101 2 );
102
103 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
104 0 my ($orig, $self) = @_;
105 0 return $self->$orig;
106 2 };
107
108 has 'eras' => (
109 is => 'ro',
110 isa => HashRef,
111 init_arg => undef,
112 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
113 1 'generic' => {
114 },
115 'gregorian' => {
116 },
117 } },
118 2 );
119
120 has 'date_formats' => (
121 is => 'ro',
122 isa => HashRef,
123 init_arg => undef,
124 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
125 1 'generic' => {
126 'medium' => q{d/MM/y G},
127 'short' => q{d/MM/y GGGGG},
128 },
129 'gregorian' => {
130 'medium' => q{d MMM y},
131 'short' => q{dd/MM/y},
132 },
133 } },
134 2 );
135
136 has 'time_formats' => (
137 is => 'ro',
138 isa => HashRef,
139 init_arg => undef,
140 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
141 1 'generic' => {
142 },
143 'gregorian' => {
144 },
145 } },
146 2 );
147
148 has 'datetime_formats' => (
149 is => 'ro',
150 isa => HashRef,
151 init_arg => undef,
152 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
153 1 'generic' => {
154 },
155 'gregorian' => {
156 },
157 } },
158 2 );
159
160 has 'datetime_formats_available_formats' => (
161 is => 'ro',
162 isa => HashRef,
163 init_arg => undef,
164 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
165 1 'generic' => {
166 Md => q{d/M},
167 yyyyMd => q{d/MM/y G},
168 },
169 'gregorian' => {
170 Md => q{d/M},
171 yMd => q{d/MM/y},
172 },
173 } },
174 2 );
175
176 has 'datetime_formats_append_item' => (
177 is => 'ro',
178 isa => HashRef,
179 init_arg => undef,
180 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
181 1 } },
182 2 );
183
184 has 'datetime_formats_interval' => (
185 is => 'ro',
186 isa => HashRef,
187 init_arg => undef,
188 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
189 1 'generic' => {
190 MEd => {
191 M => q{E, d/MM – E, d/MM},
192 d => q{E, d/MM – E, d/MM},
193 },
194 MMMEd => {
195 M => q{E, d MMM – E, d MMM},
196 d => q{E, d – E, d MMM},
197 },
198 Md => {
199 M => q{d/MM – d/MM},
200 d => q{d/MM – d/MM},
201 },
202 yM => {
203 M => q{MM/y – MM/y G},
204 y => q{MM/y – MM/y G},
205 },
206 yMEd => {
207 M => q{E, d/MM/y – E, d/MM/y G},
208 d => q{E, d/MM/y – E, d/MM/y G},
209 y => q{E, d/MM/y – E, d/MM/y G},
210 },
211 yMd => {
212 M => q{d/MM/y – d/MM/y G},
213 d => q{d/MM/y – d/MM/y G},
214 y => q{d/MM/y – d/MM/y G},
215 },
216 },
217 'gregorian' => {
218 MEd => {
219 M => q{E, d/MM – E, d/MM},
220 d => q{E, d/MM – E, d/MM},
221 },
222 MMMEd => {
223 M => q{E, d MMM – E, d MMM},
224 d => q{E, d – E, d MMM},
225 },
226 Md => {
227 M => q{d/MM – d/MM},
228 d => q{d/MM – d/MM},
229 },
230 yMEd => {
231 M => q{E, d/MM/y – E, d/MM/y},
232 d => q{E, d/MM/y – E, d/MM/y},
233 y => q{E, d/MM/y – E, d/MM/y},
234 },
235 yMd => {
236 M => q{d/MM/y – d/MM/y},
237 d => q{d/MM/y – d/MM/y},
238 y => q{d/MM/y – d/MM/y},
239 },
240 },
241 } },
242 2 );
243
244 has 'time_zone_names' => (
245 is => 'ro',
246 isa => HashRef,
247 init_arg => undef,
248 1 ▶ default => sub { {
Subroutine __ANON__: called CC=1 SCAR=0.0
249 1 'Australia_Central' => {
250 short => {
251 'daylight' => q#ACDT#,
252 'generic' => q#ACT#,
253 'standard' => q#ACST#,
254 },
255 },
256 'Australia_CentralWestern' => {
257 short => {
258 'daylight' => q#ACWDT#,
259 'generic' => q#ACWT#,
260 'standard' => q#ACWST#,
261 },
262 },
263 'Australia_Eastern' => {
264 short => {
265 'daylight' => q#AEDT#,
266 'generic' => q#AET#,
267 'standard' => q#AEST#,
268 },
269 },
270 'Australia_Western' => {
271 short => {
272 'daylight' => q#AWDT#,
273 'generic' => q#AWT#,
274 'standard' => q#AWST#,
275 },
276 },
277 'Chatham' => {
278 short => {
279 'daylight' => q#CHADT#,
280 'generic' => q#CHAT#,
281 'standard' => q#CHAST#,
282 },
283 },
284 'Lord_Howe' => {
285 short => {
286 'daylight' => q#LHDT#,
287 'generic' => q#LHT#,
288 'standard' => q#LHST#,
289 },
290 },
291 'New_Zealand' => {
292 short => {
293 'daylight' => q#NZDT#,
294 'generic' => q#NZT#,
295 'standard' => q#NZST#,
296 },
297 },
298 } }
299 2 );
300 2 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
301
302 2 1;
303
304 # vim: tabstop=4
« En/Latn/Sg.pm ↑ Summary En/Latn/Dk.pm »