Ru/Cyrl/Ua.pm

filter: Statementstmt 48.3% 43 / 89 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.7% 53 / 233 CC 45 SCAR 72.7
CC
45
Cov
23%
__ANON__
2070.0
__ANON__
2.0
__ANON__
2.0
CRAP 1433.5
« Ru.pm ↑ Summary Ru/Cyrl/By.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ru::Cyrl::Ua - Package for language Russian
6
7 =cut
8
9 package Locale::CLDR::Locales::Ru::Cyrl::Ua;
10 # This file auto generated from Data\common\main\ru_UA.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::Ru::Cyrl');
27 has 'display_name_region' => (
28 is => 'ro',
29 isa => HashRef[Str],
30 init_arg => undef,
31 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 {
33 0 'AC' => 'О-в Вознесения',
34 'AE' => 'Объединенные Арабские Эмираты',
35 'BV' => 'О-в Буве',
36 'CK' => 'О-ва Кука',
37 'CP' => 'О-в Клиппертон',
38 'CX' => 'О-в Рождества',
39 'HM' => 'О-ва Херд и Макдональд',
40 'NF' => 'О-в Норфолк',
41 'TL' => 'Тимор-Лесте',
42 'UM' => 'Малые Тихоокеанские Отдаленные Острова США',
43
44 }
45 },
46 1 );
47
48 1 has 'minimum_grouping_digits' => (
49 is =>'ro',
50 isa => Int,
51 init_arg => undef,
52 default => 2,
53 );
54
55 has 'day_period_data' => (
56 is => 'ro',
57 isa => CodeRef,
58 init_arg => undef,
59 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=45 SCAR=76.4
60 # Time in hhmm format
61 0 my ($self, $type, $time, $day_period_type) = @_;
62 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
63 SWITCH:
64 0 for ($type) {
65 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
66 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
67 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
68 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
69 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
70 && $time < 1800;
71 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
72 && $time < 2200;
73 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
74 && $time < 1200;
75 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
76 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
77 }
78 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
79 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
80 && $time < 1800;
81 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
82 && $time < 2200;
83 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
84 && $time < 1200;
85 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
86 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
87 }
88 0 last SWITCH;
89 }
90 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
91 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
92 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
93 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
94 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
95 && $time < 1800;
96 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
97 && $time < 2200;
98 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
99 && $time < 1200;
100 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
101 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
102 }
103 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
104 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
105 && $time < 1800;
106 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2200 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2200
$time >= 1800 $time < 2200
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2200
ABresult
0X0
100
111
107 && $time < 2200;
108 0 ▶ return 'morning1' if $time >= 400
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 400 and $time < 1200 0 0 0
Condition0%0/3
$time >= 400 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 400 and $time < 1200
$time >= 400 $time < 1200
Truth table0%0/3
A and B
A= $time >= 400B= $time < 1200
ABresult
0X0
100
111
109 && $time < 1200;
110 0 ▶ return 'night1' if $time >= 2200;
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2200 0 0 0
111 0 ▶ return 'night1' if $time < 400;
Branch: 1 branch
BranchTrueFalseTotal
if $time < 400 0 0 0
112 }
113 0 last SWITCH;
114 }
115 }
116 0 } },
117 1 );
118
119 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
120 0 my ($orig, $self) = @_;
121 0 return $self->$orig;
122 1 };
123
124 has 'eras' => (
125 is => 'ro',
126 isa => HashRef,
127 init_arg => undef,
128 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
129 0 'generic' => {
130 },
131 'gregorian' => {
132 },
133 } },
134 1 );
135
136 has 'date_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 },
145 } },
146 1 );
147
148 has 'time_formats' => (
149 is => 'ro',
150 isa => HashRef,
151 init_arg => undef,
152 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
153 0 'generic' => {
154 },
155 'gregorian' => {
156 },
157 } },
158 1 );
159
160 has 'datetime_formats' => (
161 is => 'ro',
162 isa => HashRef,
163 init_arg => undef,
164 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
165 0 'generic' => {
166 },
167 'gregorian' => {
168 },
169 } },
170 1 );
171
172 has 'datetime_formats_available_formats' => (
173 is => 'ro',
174 isa => HashRef,
175 init_arg => undef,
176 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
177 0 'gregorian' => {
178 yMEd => q{ccc, d.MM.y},
179 },
180 } },
181 1 );
182
183 has 'datetime_formats_append_item' => (
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 } },
189 1 );
190
191 has 'datetime_formats_interval' => (
192 is => 'ro',
193 isa => HashRef,
194 init_arg => undef,
195 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
196 0 'generic' => {
197 H => {
198 H => q{HH–HH 'ч'.},
199 },
200 Hv => {
201 H => q{HH–HH 'ч'., v},
202 },
203 MMMEd => {
204 M => q{E, d MMM – E, d MMM},
205 d => q{E, d – E, d MMM},
206 },
207 h => {
208 h => q{h–h 'ч'. a},
209 },
210 hv => {
211 h => q{h–h 'ч'. a, v},
212 },
213 yMEd => {
214 M => q{E, dd.MM.y – E, dd.MM.y},
215 d => q{E, dd.MM.y – E, dd.MM.y},
216 y => q{E, dd.MM.y – E, dd.MM.y},
217 },
218 yMMM => {
219 M => q{MMM–MMM y},
220 y => q{MMM y – MMM y},
221 },
222 yMMMEd => {
223 M => q{E, d MMM – E, d MMM y 'г'.},
224 d => q{E, d – E, d MMM y 'г'.},
225 y => q{E, d MMM y – E, d MMM y 'г'.},
226 },
227 yMMMM => {
228 M => q{LLLL–LLLL y},
229 y => q{LLLL y – LLLL y},
230 },
231 yMMMd => {
232 M => q{d MMM – d MMM y},
233 d => q{d–d MMM y},
234 y => q{d MMM y – d MMM y},
235 },
236 },
237 'gregorian' => {
238 yMMM => {
239 y => q{LLL y – LLL y},
240 },
241 yMMMEd => {
242 y => q{ccc, d MMM y – ccc, d MMM y},
243 },
244 yMMMM => {
245 y => q{LLLL y – LLLL y},
246 },
247 yMMMd => {
248 y => q{d MMM y – d MMM y},
249 },
250 },
251 } },
252 1 );
253
254 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
255
256 1 1;
257
258 # vim: tabstop=4
« Ru.pm ↑ Summary Ru/Cyrl/By.pm »