Ar/Arab/Ps.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/Km.pm ↑ Summary Ar/Arab/Sy.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Ar::Arab::Ps - Package for language Arabic
6
7 =cut
8
9 package Locale::CLDR::Locales::Ar::Arab::Ps;
10 # This file auto generated from Data\common\main\ar_PS.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 wide => {
42 nonleap => [
43 'كانون الثاني',
44 'شباط',
45 'آذار',
46 'نيسان',
47 'أيار',
48 'حزيران',
49 'تموز',
50 'آب',
51 'أيلول',
52 'تشرين الأول',
53 'تشرين الثاني',
54 'كانون الأول'
55 ],
56 leap => [
57
58 ],
59 },
60 },
61 'stand-alone' => {
62 narrow => {
63 nonleap => [
64 'ك',
65 'ش',
66 'آ',
67 'ن',
68 'أ',
69 'ح',
70 'ت',
71 'آ',
72 'أ',
73 'ت',
74 'ت',
75 'ك'
76 ],
77 leap => [
78
79 ],
80 },
81 },
82 },
83 } },
84 1 );
85
86 has 'day_period_data' => (
87 is => 'ro',
88 isa => CodeRef,
89 init_arg => undef,
90 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=34 SCAR=70.8
91 # Time in hhmm format
92 0 my ($self, $type, $time, $day_period_type) = @_;
93 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
94 SWITCH:
95 0 for ($type) {
96 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
97 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
98 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
99 && $time < 1300;
100 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
101 && $time < 1800;
102 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
103 && $time < 2400;
104 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
105 && $time < 600;
106 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
107 && $time < 1200;
108 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
109 && $time < 100;
110 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
111 && $time < 300;
112 }
113 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
114 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
115 && $time < 1300;
116 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
117 && $time < 1800;
118 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
119 && $time < 2400;
120 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
121 && $time < 600;
122 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
123 && $time < 1200;
124 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
125 && $time < 100;
126 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
127 && $time < 300;
128 }
129 0 last SWITCH;
130 }
131 }
132 0 } },
133 1 );
134
135 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
136 0 my ($orig, $self) = @_;
137 0 return $self->$orig;
138 1 };
139
140 has 'eras' => (
141 is => 'ro',
142 isa => HashRef,
143 init_arg => undef,
144 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
145 0 'gregorian' => {
146 },
147 } },
148 1 );
149
150 has 'date_formats' => (
151 is => 'ro',
152 isa => HashRef,
153 init_arg => undef,
154 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
155 0 'gregorian' => {
156 },
157 } },
158 1 );
159
160 has 'time_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 'gregorian' => {
166 },
167 } },
168 1 );
169
170 has 'datetime_formats' => (
171 is => 'ro',
172 isa => HashRef,
173 init_arg => undef,
174 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
175 0 'gregorian' => {
176 },
177 } },
178 1 );
179
180 has 'datetime_formats_available_formats' => (
181 is => 'ro',
182 isa => HashRef,
183 init_arg => undef,
184 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
185 0 } },
186 1 );
187
188 has 'datetime_formats_append_item' => (
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 } },
194 1 );
195
196 has 'datetime_formats_interval' => (
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 } },
202 1 );
203
204 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
205
206 1 1;
207
208 # vim: tabstop=4
« Ar/Arab/Km.pm ↑ Summary Ar/Arab/Sy.pm »