Ar/Arab/Mr.pm

filter: Statementstmt 58.5% 48 / 82 Branchbran 2.7% 1 / 36 Conditioncond 0.0% 0 / 44 MC/DCmcdc 0.0% 0 / 29 Subroutinesub 45.8% 11 / 24 Podpod n/a totaltotal 27.9% 60 / 215 CC 34 SCAR 65.7
CC
34
Cov
30%
__ANON__
1190.0
__ANON__
2.0
__ANON__
2.0
CRAP 710.4
« Ar/Arab/Ma.pm ↑ Summary Ar/Arab/Tn.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Mr - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Mr;
10 # This file auto generated from Data\common\main\ar_MR.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::Ar::Arab');
27 has 'characters' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 default => $^V ge v5.18.0
32 ? eval <<'EOT'
33 sub {
34 no warnings 'experimental::regex_sets';
35 return {
36 numbers => qr{[‎ \- ‑ , . % ‰ + 0 1 2 3 4 5 6 7 8 9]},
37 };
38 },
39 EOT
40 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
41 0 return {};
42 },
43 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
44
45
46 1 has 'default_numbering_system' => (
47 is => 'ro',
48 isa => Str,
49 init_arg => undef,
50 default => 'arab',
51 );
52
53 has 'number_symbols' => (
54 is => 'ro',
55 isa => HashRef,
56 init_arg => undef,
57 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
58 0 'latn' => {
59 'decimal' => q(,),
60 'group' => q(.),
61 },
62 } }
63 1 );
64
65 has 'calendar_months' => (
66 is => 'ro',
67 isa => HashRef,
68 init_arg => undef,
69 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
70 0 'gregorian' => {
71 'format' => {
72 wide => {
73 nonleap => [
74 'يناير',
75 'فبراير',
76 'مارس',
77 'إبريل',
78 'مايو',
79 'يونيو',
80 'يوليو',
81 'أغشت',
82 'شتمبر',
83 'أكتوبر',
84 'نوفمبر',
85 'دجمبر'
86 ],
87 leap => [
88
89 ],
90 },
91 },
92 'stand-alone' => {
93 narrow => {
94 nonleap => [
95 'ي',
96 'ف',
97 'م',
98 'إ',
99 'و',
100 'ن',
101 'ل',
102 'غ',
103 'ش',
104 'ك',
105 'ب',
106 'د'
107 ],
108 leap => [
109
110 ],
111 },
112 },
113 },
114 } },
115 1 );
116
117 has 'day_period_data' => (
118 is => 'ro',
119 isa => CodeRef,
120 init_arg => undef,
121 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
122 # Time in hhmm format
123 0 my ($self, $type, $time, $day_period_type) = @_;
124 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
125 SWITCH:
126 0 for ($type) {
127 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
128 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
129 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
130 && $time < 1300;
131 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
132 && $time < 1800;
133 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
134 && $time < 2400;
135 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 600 0 0 0
Condition0%0/3
$time >= 300 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 600
$time >= 300 $time < 600
Truth table0%0/3
A and B
A= $time >= 300B= $time < 600
ABresult
0X0
100
111
136 && $time < 600;
137 0 ▶ return 'morning2' 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 >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 100 0 0 0
Condition0%0/3
$time >= 0 and $time < 100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 100
$time >= 0 $time < 100
Truth table0%0/3
A and B
A= $time >= 0B= $time < 100
ABresult
0X0
100
111
140 && $time < 100;
141 0 ▶ return 'night2' if $time >= 100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 100 and $time < 300 0 0 0
Condition0%0/3
$time >= 100 and $time < 300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 100 and $time < 300
$time >= 100 $time < 300
Truth table0%0/3
A and B
A= $time >= 100B= $time < 300
ABresult
0X0
100
111
142 && $time < 300;
143 }
144 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
145 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1300 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1300
$time >= 1200 $time < 1300
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1300
ABresult
0X0
100
111
146 && $time < 1300;
147 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1800
$time >= 1300 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1800
ABresult
0X0
100
111
148 && $time < 1800;
149 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
150 && $time < 2400;
151 0 ▶ return 'morning1' if $time >= 300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 300 and $time < 600 0 0 0
Condition0%0/3
$time >= 300 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 300 and $time < 600
$time >= 300 $time < 600
Truth table0%0/3
A and B
A= $time >= 300B= $time < 600
ABresult
0X0
100
111
152 && $time < 600;
153 0 ▶ return 'morning2' 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
154 && $time < 1200;
155 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 100 0 0 0
Condition0%0/3
$time >= 0 and $time < 100
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 100
$time >= 0 $time < 100
Truth table0%0/3
A and B
A= $time >= 0B= $time < 100
ABresult
0X0
100
111
156 && $time < 100;
157 0 ▶ return 'night2' if $time >= 100
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 100 and $time < 300 0 0 0
Condition0%0/3
$time >= 100 and $time < 300
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 100 and $time < 300
$time >= 100 $time < 300
Truth table0%0/3
A and B
A= $time >= 100B= $time < 300
ABresult
0X0
100
111
158 && $time < 300;
159 }
160 0 last SWITCH;
161 }
162 }
163 0 } },
164 1 );
165
166 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
167 0 my ($orig, $self) = @_;
168 0 return $self->$orig;
169 1 };
170
171 has 'eras' => (
172 is => 'ro',
173 isa => HashRef,
174 init_arg => undef,
175 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
176 0 'gregorian' => {
177 },
178 } },
179 1 );
180
181 has 'date_formats' => (
182 is => 'ro',
183 isa => HashRef,
184 init_arg => undef,
185 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
186 0 'gregorian' => {
187 },
188 } },
189 1 );
190
191 has 'time_formats' => (
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 'gregorian' => {
197 },
198 } },
199 1 );
200
201 has 'datetime_formats' => (
202 is => 'ro',
203 isa => HashRef,
204 init_arg => undef,
205 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
206 0 'gregorian' => {
207 },
208 } },
209 1 );
210
211 has 'datetime_formats_available_formats' => (
212 is => 'ro',
213 isa => HashRef,
214 init_arg => undef,
215 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
216 0 } },
217 1 );
218
219 has 'datetime_formats_append_item' => (
220 is => 'ro',
221 isa => HashRef,
222 init_arg => undef,
223 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
224 0 } },
225 1 );
226
227 has 'datetime_formats_interval' => (
228 is => 'ro',
229 isa => HashRef,
230 init_arg => undef,
231 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
232 0 } },
233 1 );
234
235 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
236
237 1 1;
238
239 # vim: tabstop=4
« Ar/Arab/Ma.pm ↑ Summary Ar/Arab/Tn.pm »