Sr/Latn/Me.pm

filter: Statementstmt 46.0% 46 / 100 Branchbran 0.0% 0 / 62 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 38.4% 10 / 26 Podpod n/a totaltotal 22.3% 56 / 251 CC 46 SCAR 71.8
CC
46
Cov
23%
__ANON__
2070.0
__ANON__
6.0
__ANON__
2.0
CRAP 1312.7
« Sr/Cyrl/Me.pm ↑ Summary Sr/Cyrl/Ba.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Sr::Latn::Me - Package for language Serbian
6
7 =cut
8
9 package Locale::CLDR::Locales::Sr::Latn::Me;
10 # This file auto generated from Data\common\main\sr_Latn_ME.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::Sr::Latn');
27 has 'display_name_language' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 ▶ sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
33 0 my %languages = (
34 'arn' => 'mapudungun',
35 'be' => 'bjeloruski',
36 'bm' => 'bamanankan',
37 'bn' => 'bangla',
38 'ff' => 'fulah',
39 'ht' => 'haićanski kreolski',
40 'lo' => 'laoški',
41 'moh' => 'mohok',
42 'nqo' => 'n’ko',
43 'shi' => 'južni šilha',
44 'xh' => 'isikosa',
45 'zgh' => 'standardni marokanski tamašek',
46 'zu' => 'isizulu',
47
48 );
49 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
50 0 return $languages{$_[0]};
51 }
52 0 return \%languages;
53 }
54 0 },
55 1 );
56
57 has 'display_name_region' => (
58 is => 'ro',
59 isa => HashRef[Str],
60 init_arg => undef,
61 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 {
63 0 'BY' => 'Bjelorusija',
64 'CG' => 'Kongo',
65 'CZ' => 'Češka Republika',
66 'DE' => 'Njemačka',
67 'KN' => 'Sveti Kits i Nevis',
68 'PM' => 'Sveti Pjer i Mikelon',
69 'RE' => 'Reunion',
70 'UM' => 'Manja udaljena ostrva SAD',
71 'VC' => 'Sveti Vinsent i Grenadini',
72 'VG' => 'Britanska Djevičanska Ostrva',
73 'VI' => 'Američka Djevičanska Ostrva',
74
75 }
76 },
77 1 );
78
79 has 'calendar_months' => (
80 is => 'ro',
81 isa => HashRef,
82 init_arg => undef,
83 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
84 0 'gregorian' => {
85 'format' => {
86 abbreviated => {
87 nonleap => [
88 'jan',
89 'feb',
90 'mart',
91 'apr',
92 'maj',
93 'jun',
94 'jul',
95 'avg',
96 'sept',
97 'okt',
98 'nov',
99 'dec'
100 ],
101 leap => [
102
103 ],
104 },
105 },
106 },
107 } },
108 1 );
109
110 has 'calendar_days' => (
111 is => 'ro',
112 isa => HashRef,
113 init_arg => undef,
114 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
115 0 'gregorian' => {
116 'format' => {
117 wide => {
118 mon => 'ponedeljak',
119 tue => 'utorak',
120 wed => 'srijeda',
121 thu => 'četvrtak',
122 fri => 'petak',
123 sat => 'subota',
124 sun => 'nedjelja'
125 },
126 },
127 },
128 } },
129 1 );
130
131 has 'day_period_data' => (
132 is => 'ro',
133 isa => CodeRef,
134 init_arg => undef,
135 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
136 # Time in hhmm format
137 0 my ($self, $type, $time, $day_period_type) = @_;
138 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
139 SWITCH:
140 0 for ($type) {
141 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
142 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
143 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
144 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
145 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
146 && $time < 1800;
147 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
148 && $time < 2100;
149 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
150 && $time < 1200;
151 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
152 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
153 }
154 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
155 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
156 && $time < 1800;
157 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
158 && $time < 2100;
159 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
160 && $time < 1200;
161 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
162 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
163 }
164 0 last SWITCH;
165 }
166 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
167 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
168 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
169 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
170 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
171 && $time < 1800;
172 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
173 && $time < 2100;
174 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
175 && $time < 1200;
176 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
177 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
178 }
179 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
180 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
181 && $time < 1800;
182 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
183 && $time < 2100;
184 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
185 && $time < 1200;
186 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
187 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
188 }
189 0 last SWITCH;
190 }
191 }
192 0 } },
193 1 );
194
195 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
196 0 my ($orig, $self) = @_;
197 0 return $self->$orig;
198 1 };
199
200 has 'day_periods' => (
201 is => 'ro',
202 isa => HashRef,
203 init_arg => undef,
204 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
205 0 'gregorian' => {
206 'format' => {
207 'abbreviated' => {
208 'afternoon1' => q{po pod.},
209 'am' => q{prije podne},
210 'evening1' => q{veče},
211 'midnight' => q{ponoć},
212 'morning1' => q{jutro},
213 'night1' => q{noću},
214 'noon' => q{podne},
215 'pm' => q{po podne},
216 },
217 'narrow' => {
218 'afternoon1' => q{po pod.},
219 'evening1' => q{veče},
220 'midnight' => q{ponoć},
221 'morning1' => q{jutro},
222 'night1' => q{noć},
223 'noon' => q{podne},
224 },
225 'wide' => {
226 'am' => q{prije podne},
227 'pm' => q{po podne},
228 },
229 },
230 'stand-alone' => {
231 'narrow' => {
232 'am' => q{a},
233 'pm' => q{p},
234 },
235 'wide' => {
236 'am' => q{prije podne},
237 'pm' => q{po podne},
238 },
239 },
240 },
241 } },
242 1 );
243
244 has 'eras' => (
245 is => 'ro',
246 isa => HashRef,
247 init_arg => undef,
248 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
249 0 'generic' => {
250 },
251 'gregorian' => {
252 wide => {
253 '0' => 'prije nove ere'
254 },
255 },
256 } },
257 1 );
258
259 has 'date_formats' => (
260 is => 'ro',
261 isa => HashRef,
262 init_arg => undef,
263 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
264 0 'generic' => {
265 },
266 'gregorian' => {
267 },
268 } },
269 1 );
270
271 has 'time_formats' => (
272 is => 'ro',
273 isa => HashRef,
274 init_arg => undef,
275 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
276 0 'generic' => {
277 },
278 'gregorian' => {
279 },
280 } },
281 1 );
282
283 has 'datetime_formats' => (
284 is => 'ro',
285 isa => HashRef,
286 init_arg => undef,
287 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
288 0 'generic' => {
289 },
290 'gregorian' => {
291 },
292 } },
293 1 );
294
295 has 'datetime_formats_available_formats' => (
296 is => 'ro',
297 isa => HashRef,
298 init_arg => undef,
299 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
300 0 'gregorian' => {
301 MMMMW => q{W. 'sjedmica' 'u' MMMM},
302 yw => q{w. 'sjedmica' 'u' Y.},
303 },
304 } },
305 1 );
306
307 has 'datetime_formats_append_item' => (
308 is => 'ro',
309 isa => HashRef,
310 init_arg => undef,
311 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
312 0 } },
313 1 );
314
315 has 'datetime_formats_interval' => (
316 is => 'ro',
317 isa => HashRef,
318 init_arg => undef,
319 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
320 0 'generic' => {
321 MMMEd => {
322 M => q{E, d. MMM – E, d. MMM},
323 d => q{E, d. MMM – E, d. MMM},
324 },
325 },
326 } },
327 1 );
328
329 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
330
331 1 1;
332
333 # vim: tabstop=4
« Sr/Cyrl/Me.pm ↑ Summary Sr/Cyrl/Ba.pm »