En/Latn/Mt.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/Jm.pm ↑ Summary En/Latn/Pk.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::En::Latn::Mt - Package for language English
6
7 =cut
8
9 package Locale::CLDR::Locales::En::Latn::Mt;
10 # This file auto generated from Data\common\main\en_MT.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 'GBP' => {
33 symbol => 'GB£',
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 'long' => q{dd MMMM y G},
127 'medium' => q{dd MMM y G},
128 },
129 'gregorian' => {
130 'long' => q{dd MMMM y},
131 'medium' => q{dd MMM y},
132 },
133 } },
134 1 );
135
136 has 'time_formats' => (
137 is => 'ro',
138 isa => HashRef,
139 init_arg => undef,
140 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
141 0 'generic' => {
142 },
143 'gregorian' => {
144 'full' => q{HH:mm:ss zzzz},
145 'long' => q{HH:mm:ss z},
146 'medium' => q{HH:mm:ss},
147 'short' => q{HH:mm},
148 },
149 } },
150 1 );
151
152 has 'datetime_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 },
159 'gregorian' => {
160 },
161 } },
162 1 );
163
164 has 'datetime_formats_available_formats' => (
165 is => 'ro',
166 isa => HashRef,
167 init_arg => undef,
168 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
169 0 'generic' => {
170 MMMd => q{dd MMM},
171 yyyyMMMEd => q{E, dd MMM y G},
172 yyyyMMMd => q{dd MMM y G},
173 },
174 'gregorian' => {
175 MMMd => q{dd MMM},
176 yMMMEd => q{E, dd MMM y},
177 yMMMd => q{dd MMM y},
178 },
179 } },
180 1 );
181
182 has 'datetime_formats_append_item' => (
183 is => 'ro',
184 isa => HashRef,
185 init_arg => undef,
186 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
187 0 } },
188 1 );
189
190 has 'datetime_formats_interval' => (
191 is => 'ro',
192 isa => HashRef,
193 init_arg => undef,
194 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
195 0 'generic' => {
196 MEd => {
197 M => q{E, dd/MM – E, dd/MM},
198 d => q{E, dd/MM – E, dd/MM},
199 },
200 MMMEd => {
201 M => q{E, dd MMM – E, dd MMM},
202 d => q{E, dd – E, dd MMM},
203 },
204 MMMd => {
205 M => q{dd MMM – dd MMM},
206 d => q{dd – dd MMM},
207 },
208 yM => {
209 M => q{MM/y – MM/y G},
210 y => q{MM/y – MM/y G},
211 },
212 yMEd => {
213 M => q{E, dd/MM/y – E, dd/MM/y G},
214 d => q{E, dd/MM/y – E, dd/MM/y G},
215 y => q{E, dd/MM/y – E, dd/MM/y G},
216 },
217 yMMMd => {
218 M => q{dd MMM – dd MMM y G},
219 d => q{dd – dd MMM y G},
220 y => q{dd MMM y – dd MMM y G},
221 },
222 yMd => {
223 M => q{dd/MM/y – dd/MM/y G},
224 d => q{dd/MM/y – dd/MM/y G},
225 y => q{dd/MM/y – dd/MM/y G},
226 },
227 },
228 'gregorian' => {
229 MEd => {
230 M => q{E, dd/MM – E, dd/MM},
231 d => q{E, dd/MM – E, dd/MM},
232 },
233 MMMEd => {
234 M => q{E, dd MMM – E, dd MMM},
235 d => q{E, dd – E, dd MMM},
236 },
237 MMMd => {
238 M => q{dd MMM – dd MMM},
239 d => q{dd – dd MMM},
240 },
241 yMMMd => {
242 M => q{dd MMM – dd MMM y},
243 d => q{dd – dd MMM y},
244 y => q{dd MMM y – dd MMM y},
245 },
246 },
247 } },
248 1 );
249
250 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
251
252 1 1;
253
254 # vim: tabstop=4
« En/Latn/Jm.pm ↑ Summary En/Latn/Pk.pm »