Es/Latn/Cr.pm

filter: Statementstmt 58.1% 50 / 86 Branchbran 3.5% 1 / 28 Conditioncond 0.0% 0 / 26 MC/DCmcdc 0.0% 0 / 17 Subroutinesub 39.2% 11 / 28 Podpod n/a totaltotal 33.5% 62 / 185 CC 24 SCAR 55.2
CC
24
Cov
36%
__ANON__
552.0
__ANON__
6.0
__ANON__
2.0
CRAP 250.0
« Es/Latn/Bo.pm ↑ Summary Es/Latn/Py.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Es::Latn::Cr - Package for language Spanish
6
7 =cut
8
9 package Locale::CLDR::Locales::Es::Latn::Cr;
10 # This file auto generated from Data\common\main\es_CR.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::Es::Latn::419');
27 has 'display_name_language' => (
28 is => 'ro',
29 isa => CodeRef,
30 init_arg => undef,
31 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 ▶ sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
33 0 my %languages = (
34 'ace' => 'acehnés',
35 'arp' => 'arapaho',
36 'bho' => 'bhojpuri',
37 'eu' => 'euskera',
38 'grc' => 'griego antiguo',
39 'nso' => 'sotho septentrional',
40 'pa' => 'punyabí',
41 'ss' => 'siswati',
42 'sw' => 'suajili',
43 'sw_CD' => 'suajili del Congo',
44 'tn' => 'setswana',
45 'wo' => 'wolof',
46 'zgh' => 'tamazight marroquí estándar',
47
48 );
49 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
50 0 return $languages{$_[0]};
51 }
52 0 return \%languages;
53 }
54 0 },
55 1 );
56
57 has 'display_name_region' => (
58 is => 'ro',
59 isa => HashRef[Str],
60 init_arg => undef,
61 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
62 {
63 0 'BA' => 'Bosnia y Herzegovina',
64 'GB@alt=short' => 'RU',
65 'TL' => 'Timor-Leste',
66 'UM' => 'Islas menores alejadas de EE. UU.',
67
68 }
69 },
70 1 );
71
72 has 'characters' => (
73 is => 'ro',
74 isa => HashRef,
75 init_arg => undef,
76 default => $^V ge v5.18.0
77 ? eval <<'EOT'
78 sub {
79 no warnings 'experimental::regex_sets';
80 return {
81 numbers => qr{[  \- ‑ , % ‰ + 0 1 2 3 4 5 6 7 8 9]},
82 };
83 },
84 EOT
85 0 ▶: sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
86 0 return {};
87 },
88 1 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
$^V ge v5.18.0 ? : 1 0 1
89
90
91 has 'number_symbols' => (
92 is => 'ro',
93 isa => HashRef,
94 init_arg => undef,
95 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
96 0 'latn' => {
97 'decimal' => q(,),
98 'group' => q( ),
99 },
100 } }
101 1 );
102
103 has 'currencies' => (
104 is => 'ro',
105 isa => HashRef,
106 init_arg => undef,
107 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
108 0 'CRC' => {
109 symbol => '₡',
110 },
111 } },
112 1 );
113
114
115 has 'day_period_data' => (
116 is => 'ro',
117 isa => CodeRef,
118 init_arg => undef,
119 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=23 SCAR=63.1
120 # Time in hhmm format
121 0 my ($self, $type, $time, $day_period_type) = @_;
122 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
123 SWITCH:
124 0 for ($type) {
125 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
126 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
127 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
128 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
129 && $time < 2000;
130 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $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 >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
135 && $time < 2400;
136 }
137 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
138 0 ▶ return 'evening1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 2000 0 0 0
Condition0%0/3
$time >= 1200 and $time < 2000
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 2000
$time >= 1200 $time < 2000
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 2000
ABresult
0X0
100
111
139 && $time < 2000;
140 0 ▶ return 'morning1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 600 0 0 0
Condition0%0/3
$time >= 0 and $time < 600
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 600
$time >= 0 $time < 600
Truth table0%0/3
A and B
A= $time >= 0B= $time < 600
ABresult
0X0
100
111
141 && $time < 600;
142 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
143 && $time < 1200;
144 0 ▶ return 'night1' if $time >= 2000
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 2000 and $time < 2400 0 0 0
Condition0%0/3
$time >= 2000 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 2000 and $time < 2400
$time >= 2000 $time < 2400
Truth table0%0/3
A and B
A= $time >= 2000B= $time < 2400
ABresult
0X0
100
111
145 && $time < 2400;
146 }
147 0 last SWITCH;
148 }
149 }
150 0 } },
151 1 );
152
153 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
154 0 my ($orig, $self) = @_;
155 0 return $self->$orig;
156 1 };
157
158 has 'day_periods' => (
159 is => 'ro',
160 isa => HashRef,
161 init_arg => undef,
162 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
163 0 'gregorian' => {
164 'format' => {
165 'abbreviated' => {
166 'am' => q{a. m.},
167 'pm' => q{p. m.},
168 },
169 'wide' => {
170 'am' => q{a. m.},
171 'pm' => q{p. m.},
172 },
173 },
174 'stand-alone' => {
175 'abbreviated' => {
176 'am' => q{a. m.},
177 'pm' => q{p. m.},
178 },
179 'narrow' => {
180 'am' => q{a. m.},
181 'pm' => q{p. m.},
182 },
183 'wide' => {
184 'am' => q{a. m.},
185 'pm' => q{p. m.},
186 },
187 },
188 },
189 } },
190 1 );
191
192 has 'eras' => (
193 is => 'ro',
194 isa => HashRef,
195 init_arg => undef,
196 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
197 0 'gregorian' => {
198 },
199 } },
200 1 );
201
202 has 'date_formats' => (
203 is => 'ro',
204 isa => HashRef,
205 init_arg => undef,
206 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
207 0 'gregorian' => {
208 },
209 } },
210 1 );
211
212 has 'time_formats' => (
213 is => 'ro',
214 isa => HashRef,
215 init_arg => undef,
216 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
217 0 'gregorian' => {
218 },
219 } },
220 1 );
221
222 has 'datetime_formats' => (
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 'gregorian' => {
228 },
229 } },
230 1 );
231
232 has 'datetime_formats_available_formats' => (
233 is => 'ro',
234 isa => HashRef,
235 init_arg => undef,
236 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
237 0 } },
238 1 );
239
240 has 'datetime_formats_append_item' => (
241 is => 'ro',
242 isa => HashRef,
243 init_arg => undef,
244 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
245 0 } },
246 1 );
247
248 has 'datetime_formats_interval' => (
249 is => 'ro',
250 isa => HashRef,
251 init_arg => undef,
252 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
253 0 } },
254 1 );
255
256 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
257
258 1 1;
259
260 # vim: tabstop=4
« Es/Latn/Bo.pm ↑ Summary Es/Latn/Py.pm »