Ar/Arab/Tn.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/Mr.pm ↑ Summary Ar/Arab/Lb.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Tn - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Tn;
10 # This file auto generated from Data\common\main\ar_TN.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 => 'latn',
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 undef(),
77 'أفريل',
78 'ماي',
79 'جوان',
80 'جويلية',
81 'أوت'
82 ],
83 leap => [
84
85 ],
86 },
87 },
88 'stand-alone' => {
89 narrow => {
90 nonleap => [
91 'ج',
92 undef(),
93 undef(),
94 undef(),
95 'م',
96 'ج',
97 'ج',
98 'أ',
99 undef(),
100 'أ',
101 'ن'
102 ],
103 leap => [
104
105 ],
106 },
107 },
108 },
109 } },
110 1 );
111
112 has 'day_period_data' => (
113 is => 'ro',
114 isa => CodeRef,
115 init_arg => undef,
116 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
117 # Time in hhmm format
118 0 my ($self, $type, $time, $day_period_type) = @_;
119 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
120 SWITCH:
121 0 for ($type) {
122 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
123 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
124 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
125 && $time < 1300;
126 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
127 && $time < 1800;
128 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
129 && $time < 2400;
130 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
131 && $time < 600;
132 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
133 && $time < 1200;
134 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
135 && $time < 100;
136 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
137 && $time < 300;
138 }
139 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
140 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
141 && $time < 1300;
142 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
143 && $time < 1800;
144 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
145 && $time < 2400;
146 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
147 && $time < 600;
148 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
149 && $time < 1200;
150 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
151 && $time < 100;
152 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
153 && $time < 300;
154 }
155 0 last SWITCH;
156 }
157 }
158 0 } },
159 1 );
160
161 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
162 0 my ($orig, $self) = @_;
163 0 return $self->$orig;
164 1 };
165
166 has 'eras' => (
167 is => 'ro',
168 isa => HashRef,
169 init_arg => undef,
170 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
171 0 'gregorian' => {
172 },
173 } },
174 1 );
175
176 has 'date_formats' => (
177 is => 'ro',
178 isa => HashRef,
179 init_arg => undef,
180 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
181 0 'gregorian' => {
182 },
183 } },
184 1 );
185
186 has 'time_formats' => (
187 is => 'ro',
188 isa => HashRef,
189 init_arg => undef,
190 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
191 0 'gregorian' => {
192 },
193 } },
194 1 );
195
196 has 'datetime_formats' => (
197 is => 'ro',
198 isa => HashRef,
199 init_arg => undef,
200 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
201 0 'gregorian' => {
202 },
203 } },
204 1 );
205
206 has 'datetime_formats_available_formats' => (
207 is => 'ro',
208 isa => HashRef,
209 init_arg => undef,
210 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
211 0 } },
212 1 );
213
214 has 'datetime_formats_append_item' => (
215 is => 'ro',
216 isa => HashRef,
217 init_arg => undef,
218 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
219 0 } },
220 1 );
221
222 has 'datetime_formats_interval' => (
223 is => 'ro',
224 isa => HashRef,
225 init_arg => undef,
226 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
227 0 } },
228 1 );
229
230 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
231
232 1 1;
233
234 # vim: tabstop=4
« Ar/Arab/Mr.pm ↑ Summary Ar/Arab/Lb.pm »