Es/Latn/Sv.pm

filter: Statementstmt 56.9% 45 / 79 Branchbran 0.0% 0 / 26 Conditioncond 0.0% 0 / 26 MC/DCmcdc 0.0% 0 / 17 Subroutinesub 40.0% 10 / 25 Podpod n/a totaltotal 31.7% 55 / 173 CC 24 SCAR 55.8
CC
24
Cov
34%
__ANON__
552.0
__ANON__
6.0
__ANON__
2.0
CRAP 265.5
« Es/Latn/Ni.pm ↑ Summary Es/Latn/Uy.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Es::Latn::Sv - Package for language Spanish
6
7 =cut
8
9 package Locale::CLDR::Locales::Es::Latn::Sv;
10 # This file auto generated from Data\common\main\es_SV.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 'grc' => 'griego antiguo',
38 'nso' => 'sotho septentrional',
39 'ss' => 'siswati',
40 'wo' => 'wolof',
41
42 );
43 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
44 0 return $languages{$_[0]};
45 }
46 0 return \%languages;
47 }
48 0 },
49 1 );
50
51 has 'display_name_region' => (
52 is => 'ro',
53 isa => HashRef[Str],
54 init_arg => undef,
55 0 ▶ default => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
56 {
57 0 'UM' => 'Islas menores alejadas de EE. UU.',
58
59 }
60 },
61 1 );
62
63 has 'currencies' => (
64 is => 'ro',
65 isa => HashRef,
66 init_arg => undef,
67 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
68 0 'USD' => {
69 symbol => '$',
70 },
71 } },
72 1 );
73
74
75 has 'day_period_data' => (
76 is => 'ro',
77 isa => CodeRef,
78 init_arg => undef,
79 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=23 SCAR=63.1
80 # Time in hhmm format
81 0 my ($self, $type, $time, $day_period_type) = @_;
82 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
83 SWITCH:
84 0 for ($type) {
85 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
86 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
87 0 ▶ return 'noon' if $time == 1200;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 1200 0 0 0
88 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
89 && $time < 2000;
90 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
91 && $time < 600;
92 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
93 && $time < 1200;
94 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
95 && $time < 2400;
96 }
97 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
98 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
99 && $time < 2000;
100 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
101 && $time < 600;
102 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
103 && $time < 1200;
104 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
105 && $time < 2400;
106 }
107 0 last SWITCH;
108 }
109 }
110 0 } },
111 1 );
112
113 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
114 0 my ($orig, $self) = @_;
115 0 return $self->$orig;
116 1 };
117
118 has 'day_periods' => (
119 is => 'ro',
120 isa => HashRef,
121 init_arg => undef,
122 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
123 0 'gregorian' => {
124 'format' => {
125 'abbreviated' => {
126 'am' => q{a. m.},
127 'pm' => q{p. m.},
128 },
129 'wide' => {
130 'am' => q{a. m.},
131 'pm' => q{p. m.},
132 },
133 },
134 'stand-alone' => {
135 'abbreviated' => {
136 'am' => q{a. m.},
137 'pm' => q{p. m.},
138 },
139 'narrow' => {
140 'am' => q{a. m.},
141 'pm' => q{p. m.},
142 },
143 'wide' => {
144 'am' => q{a. m.},
145 'pm' => q{p. m.},
146 },
147 },
148 },
149 } },
150 1 );
151
152 has 'eras' => (
153 is => 'ro',
154 isa => HashRef,
155 init_arg => undef,
156 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
157 0 'gregorian' => {
158 },
159 } },
160 1 );
161
162 has 'date_formats' => (
163 is => 'ro',
164 isa => HashRef,
165 init_arg => undef,
166 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
167 0 'gregorian' => {
168 },
169 } },
170 1 );
171
172 has 'time_formats' => (
173 is => 'ro',
174 isa => HashRef,
175 init_arg => undef,
176 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
177 0 'gregorian' => {
178 },
179 } },
180 1 );
181
182 has 'datetime_formats' => (
183 is => 'ro',
184 isa => HashRef,
185 init_arg => undef,
186 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
187 0 'gregorian' => {
188 },
189 } },
190 1 );
191
192 has 'datetime_formats_available_formats' => (
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 } },
198 1 );
199
200 has 'datetime_formats_append_item' => (
201 is => 'ro',
202 isa => HashRef,
203 init_arg => undef,
204 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
205 0 } },
206 1 );
207
208 has 'datetime_formats_interval' => (
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 } },
214 1 );
215
216 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
217
218 1 1;
219
220 # vim: tabstop=4
« Es/Latn/Ni.pm ↑ Summary Es/Latn/Uy.pm »