En/Latn/Jm.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/Hk.pm ↑ Summary En/Latn/Mt.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Jm - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Jm;
10 # This file auto generated from Data\common\main\en_JM.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 'currencies' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 'JMD' => {
33 symbol => '$',
34 },
35 } },
36 1 );
37
38
39 has 'day_period_data' => (
40 is => 'ro',
41 isa => CodeRef,
42 init_arg => undef,
43 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
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 0 } },
101 1 );
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 1 };
107
108 has 'eras' => (
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 },
115 'gregorian' => {
116 },
117 } },
118 1 );
119
120 has 'date_formats' => (
121 is => 'ro',
122 isa => HashRef,
123 init_arg => undef,
124 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
125 0 'generic' => {
126 'short' => q{d/M/y GGGGG},
127 },
128 'gregorian' => {
129 'short' => q{d/M/yy},
130 },
131 } },
132 1 );
133
134 has 'time_formats' => (
135 is => 'ro',
136 isa => HashRef,
137 init_arg => undef,
138 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
139 0 'generic' => {
140 },
141 'gregorian' => {
142 },
143 } },
144 1 );
145
146 has 'datetime_formats' => (
147 is => 'ro',
148 isa => HashRef,
149 init_arg => undef,
150 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
151 0 'generic' => {
152 },
153 'gregorian' => {
154 },
155 } },
156 1 );
157
158 has 'datetime_formats_available_formats' => (
159 is => 'ro',
160 isa => HashRef,
161 init_arg => undef,
162 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
163 0 'generic' => {
164 Md => q{d/M},
165 yyyyMEd => q{E, d/M/y G},
166 },
167 'gregorian' => {
168 MEd => q{E, d/M},
169 Md => q{d/M},
170 yMEd => q{E, 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 Md => {
194 M => q{d/M – d/M},
195 d => q{d/M – d/M},
196 },
197 yMEd => {
198 M => q{E, d/M/y – E, d/M/y G},
199 d => q{E, d/M/y – E, d/M/y G},
200 y => q{E, d/M/y – E, d/M/y G},
201 },
202 yMd => {
203 M => q{d/M/y – d/M/y G},
204 d => q{d/M/y – d/M/y G},
205 y => q{d/M/y – d/M/y G},
206 },
207 },
208 'gregorian' => {
209 MEd => {
210 M => q{E, d/M – E, d/M},
211 d => q{E, d/M – E, d/M},
212 },
213 Md => {
214 M => q{d/M – d/M},
215 d => q{d/M – d/M},
216 },
217 yMEd => {
218 M => q{E, d/M/y – E, d/M/y},
219 d => q{E, d/M/y – E, d/M/y},
220 y => q{E, d/M/y – E, d/M/y},
221 },
222 yMd => {
223 M => q{d/M/y – d/M/y},
224 d => q{d/M/y – d/M/y},
225 y => q{d/M/y – d/M/y},
226 },
227 },
228 } },
229 1 );
230
231 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
232
233 1 1;
234
235 # vim: tabstop=4
« En/Latn/Hk.pm ↑ Summary En/Latn/Mt.pm »