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