Sr/Latn/Xk.pm

filter: Statementstmt 45.9% 45 / 98 Branchbran 0.0% 0 / 62 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 40.0% 10 / 25 Podpod n/a totaltotal 22.1% 55 / 248 CC 46 SCAR 71.9
CC
46
Cov
23%
__ANON__
2070.0
__ANON__
6.0
__ANON__
2.0
CRAP 1331.4
« Sr/Cyrl/Xk.pm ↑ Summary Sr/Cyrl/Me.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Sr::Latn::Xk - Package for language Serbian
6
7 =cut
8
9 package Locale::CLDR::Locales::Sr::Latn::Xk;
10 # This file auto generated from Data\common\main\sr_Latn_XK.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 'bm' => 'bamanankan',
35 'bn' => 'bangla',
36 'ff' => 'fulah',
37 'gsw' => 'švajcarski nemački',
38 'ht' => 'haićanski kreolski',
39 'lo' => 'laoški',
40 'moh' => 'mohok',
41 'nqo' => 'n’ko',
42 'shi' => 'južni šilha',
43 'si' => 'sinhalski',
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 'CG' => 'Kongo',
64 'CV' => 'Kabo Verde',
65 'CZ' => 'Češka Republika',
66 'HK' => 'SAR Hongkong',
67 'KN' => 'Sveti Kits i Nevis',
68 'MO' => 'SAR Makao',
69 'PM' => 'Sveti Pjer i Mikelon',
70 'RE' => 'Reunion',
71 'UM' => 'Manja udaljena ostrva SAD',
72 'VC' => 'Sveti Vinsent i Grenadini',
73
74 }
75 },
76 1 );
77
78 has 'calendar_months' => (
79 is => 'ro',
80 isa => HashRef,
81 init_arg => undef,
82 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
83 0 'gregorian' => {
84 'format' => {
85 abbreviated => {
86 nonleap => [
87 'jan',
88 'feb',
89 'mart',
90 'apr',
91 'maj',
92 'jun',
93 'jul',
94 'avg',
95 'sept',
96 'okt',
97 'nov',
98 'dec'
99 ],
100 leap => [
101
102 ],
103 },
104 },
105 },
106 } },
107 1 );
108
109 has 'day_period_data' => (
110 is => 'ro',
111 isa => CodeRef,
112 init_arg => undef,
113 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
114 # Time in hhmm format
115 0 my ($self, $type, $time, $day_period_type) = @_;
116 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
117 SWITCH:
118 0 for ($type) {
119 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
120 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
121 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
122 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
123 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
124 && $time < 1800;
125 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
126 && $time < 2100;
127 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
128 && $time < 1200;
129 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
130 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
131 }
132 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
133 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
134 && $time < 1800;
135 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
136 && $time < 2100;
137 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
138 && $time < 1200;
139 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
140 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
141 }
142 0 last SWITCH;
143 }
144 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
145 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
146 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
147 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
148 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
149 && $time < 1800;
150 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
151 && $time < 2100;
152 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
153 && $time < 1200;
154 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
155 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
156 }
157 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
158 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
159 && $time < 1800;
160 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
161 && $time < 2100;
162 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
163 && $time < 1200;
164 0 ▶ return 'night1' if $time >= 2100;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2100 0 0 0
165 0 ▶ return 'night1' if $time < 600;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 600 0 0 0
166 }
167 0 last SWITCH;
168 }
169 }
170 0 } },
171 1 );
172
173 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
174 0 my ($orig, $self) = @_;
175 0 return $self->$orig;
176 1 };
177
178 has 'day_periods' => (
179 is => 'ro',
180 isa => HashRef,
181 init_arg => undef,
182 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
183 0 'gregorian' => {
184 'format' => {
185 'abbreviated' => {
186 'afternoon1' => q{po pod.},
187 'evening1' => q{uveče},
188 'midnight' => q{ponoć},
189 'morning1' => q{jutro},
190 'night1' => q{noću},
191 'noon' => q{podne},
192 },
193 'narrow' => {
194 'afternoon1' => q{po pod.},
195 'evening1' => q{veče},
196 'midnight' => q{ponoć},
197 'morning1' => q{jutro},
198 'night1' => q{noć},
199 'noon' => q{podne},
200 },
201 },
202 'stand-alone' => {
203 'narrow' => {
204 'am' => q{a},
205 'pm' => q{p},
206 },
207 },
208 },
209 } },
210 1 );
211
212 has 'eras' => (
213 is => 'ro',
214 isa => HashRef,
215 init_arg => undef,
216 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
217 0 'generic' => {
218 },
219 'gregorian' => {
220 },
221 } },
222 1 );
223
224 has 'date_formats' => (
225 is => 'ro',
226 isa => HashRef,
227 init_arg => undef,
228 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
229 0 'generic' => {
230 },
231 'gregorian' => {
232 },
233 } },
234 1 );
235
236 has 'time_formats' => (
237 is => 'ro',
238 isa => HashRef,
239 init_arg => undef,
240 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
241 0 'generic' => {
242 },
243 'gregorian' => {
244 },
245 } },
246 1 );
247
248 has 'datetime_formats' => (
249 is => 'ro',
250 isa => HashRef,
251 init_arg => undef,
252 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
253 0 'generic' => {
254 },
255 'gregorian' => {
256 },
257 } },
258 1 );
259
260 has 'datetime_formats_available_formats' => (
261 is => 'ro',
262 isa => HashRef,
263 init_arg => undef,
264 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
265 0 } },
266 1 );
267
268 has 'datetime_formats_append_item' => (
269 is => 'ro',
270 isa => HashRef,
271 init_arg => undef,
272 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
273 0 } },
274 1 );
275
276 has 'datetime_formats_interval' => (
277 is => 'ro',
278 isa => HashRef,
279 init_arg => undef,
280 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
281 0 'generic' => {
282 MMMEd => {
283 M => q{E, d. MMM – E, d. MMM},
284 d => q{E, d – E, d. MMM},
285 },
286 },
287 } },
288 1 );
289
290 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
291
292 1 1;
293
294 # vim: tabstop=4
« Sr/Cyrl/Xk.pm ↑ Summary Sr/Cyrl/Me.pm »