Ar/Arab/Iq.pm

filter: Statementstmt 57.3% 43 / 75 Branchbran 0.0% 0 / 34 Conditioncond 0.0% 0 / 44 MC/DCmcdc 0.0% 0 / 29 Subroutinesub 47.6% 10 / 21 Podpod n/a totaltotal 26.1% 53 / 203 CC 34 SCAR 66.2
CC
34
Cov
28%
__ANON__
1190.0
__ANON__
2.0
__ANON__
2.0
CRAP 749.8
« Ar/Arab/Il.pm ↑ Summary Ar/Arab/Jo.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Iq - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Iq;
10 # This file auto generated from Data\common\main\ar_IQ.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 1 has 'default_numbering_system' => (
28 is => 'ro',
29 isa => Str,
30 init_arg => undef,
31 default => 'arab',
32 );
33
34 has 'calendar_months' => (
35 is => 'ro',
36 isa => HashRef,
37 init_arg => undef,
38 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
39 0 'gregorian' => {
40 'format' => {
41 abbreviated => {
42 nonleap => [
43 'كانون الثاني',
44 'شباط',
45 'آذار',
46 'نيسان',
47 'أيار',
48 'حزيران',
49 'تموز',
50 'آب',
51 'أيلول',
52 'تشرين الأول',
53 'تشرين الثاني',
54 'كانون الأول'
55 ],
56 leap => [
57
58 ],
59 },
60 wide => {
61 nonleap => [
62 'كانون الثاني',
63 'شباط',
64 'آذار',
65 'نيسان',
66 'أيار',
67 'حزيران',
68 'تموز',
69 'آب',
70 'أيلول',
71 'تشرين الأول',
72 'تشرين الثاني',
73 'كانون الأول'
74 ],
75 leap => [
76
77 ],
78 },
79 },
80 'stand-alone' => {
81 abbreviated => {
82 nonleap => [
83 'كانون الثاني',
84 'شباط',
85 'آذار',
86 'نيسان',
87 'أيار',
88 'حزيران',
89 'تموز',
90 'آب',
91 'أيلول',
92 'تشرين الأول',
93 'تشرين الثاني',
94 'كانون الأول'
95 ],
96 leap => [
97
98 ],
99 },
100 narrow => {
101 nonleap => [
102 'ك',
103 'ش',
104 'آ',
105 'ن',
106 'أ',
107 'ح',
108 'ت',
109 'آ',
110 'أ',
111 'ت',
112 'ت',
113 'ك'
114 ],
115 leap => [
116
117 ],
118 },
119 },
120 },
121 } },
122 1 );
123
124 has 'day_period_data' => (
125 is => 'ro',
126 isa => CodeRef,
127 init_arg => undef,
128 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
129 # Time in hhmm format
130 0 my ($self, $type, $time, $day_period_type) = @_;
131 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
132 SWITCH:
133 0 for ($type) {
134 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
135 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
136 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
137 && $time < 1300;
138 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
139 && $time < 1800;
140 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
141 && $time < 2400;
142 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
143 && $time < 600;
144 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
145 && $time < 1200;
146 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
147 && $time < 100;
148 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
149 && $time < 300;
150 }
151 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
152 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
153 && $time < 1300;
154 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
155 && $time < 1800;
156 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
157 && $time < 2400;
158 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
159 && $time < 600;
160 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
161 && $time < 1200;
162 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
163 && $time < 100;
164 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
165 && $time < 300;
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 'eras' => (
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 },
185 } },
186 1 );
187
188 has 'date_formats' => (
189 is => 'ro',
190 isa => HashRef,
191 init_arg => undef,
192 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
193 0 'gregorian' => {
194 },
195 } },
196 1 );
197
198 has 'time_formats' => (
199 is => 'ro',
200 isa => HashRef,
201 init_arg => undef,
202 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
203 0 'gregorian' => {
204 },
205 } },
206 1 );
207
208 has 'datetime_formats' => (
209 is => 'ro',
210 isa => HashRef,
211 init_arg => undef,
212 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
213 0 'gregorian' => {
214 },
215 } },
216 1 );
217
218 has 'datetime_formats_available_formats' => (
219 is => 'ro',
220 isa => HashRef,
221 init_arg => undef,
222 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
223 0 } },
224 1 );
225
226 has 'datetime_formats_append_item' => (
227 is => 'ro',
228 isa => HashRef,
229 init_arg => undef,
230 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
231 0 } },
232 1 );
233
234 has 'datetime_formats_interval' => (
235 is => 'ro',
236 isa => HashRef,
237 init_arg => undef,
238 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
239 0 } },
240 1 );
241
242 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
243
244 1 1;
245
246 # vim: tabstop=4
« Ar/Arab/Il.pm ↑ Summary Ar/Arab/Jo.pm »