| 1 | =encoding utf8 | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | Locale::CLDR::Locales::Es::Latn::Do - Package for language Spanish | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | package Locale::CLDR::Locales::Es::Latn::Do; | ||||||||||||||||||||||||||||
| 10 | # This file auto generated from Data\common\main\es_DO.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
| |||||||||||||||||||||||||||||
| 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 'units' => ( | ||||||||||||||||||||||||||||
| 73 | is => 'ro', | ||||||||||||||||||||||||||||
| 74 | isa => HashRef[HashRef[HashRef[Str]]], | ||||||||||||||||||||||||||||
| 75 | init_arg => undef, | ||||||||||||||||||||||||||||
| 76 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 77 | 0 | 'long' => { | |||||||||||||||||||||||||||
| 78 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 79 | 'electric-ampere' => { | ||||||||||||||||||||||||||||
| 80 | 'name' => q(amperios), | ||||||||||||||||||||||||||||
| 81 | 'one' => q({0} amperio), | ||||||||||||||||||||||||||||
| 82 | 'other' => q({0} amperios), | ||||||||||||||||||||||||||||
| 83 | }, | ||||||||||||||||||||||||||||
| 84 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 85 | 'ampere' => { | ||||||||||||||||||||||||||||
| 86 | 'name' => q(amperios), | ||||||||||||||||||||||||||||
| 87 | 'one' => q({0} amperio), | ||||||||||||||||||||||||||||
| 88 | 'other' => q({0} amperios), | ||||||||||||||||||||||||||||
| 89 | }, | ||||||||||||||||||||||||||||
| 90 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 91 | 'electric-milliampere' => { | ||||||||||||||||||||||||||||
| 92 | 'name' => q(miliamperios), | ||||||||||||||||||||||||||||
| 93 | 'one' => q({0} miliamperio), | ||||||||||||||||||||||||||||
| 94 | 'other' => q({0} miliamperios), | ||||||||||||||||||||||||||||
| 95 | }, | ||||||||||||||||||||||||||||
| 96 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 97 | 'milliampere' => { | ||||||||||||||||||||||||||||
| 98 | 'name' => q(miliamperios), | ||||||||||||||||||||||||||||
| 99 | 'one' => q({0} miliamperio), | ||||||||||||||||||||||||||||
| 100 | 'other' => q({0} miliamperios), | ||||||||||||||||||||||||||||
| 101 | }, | ||||||||||||||||||||||||||||
| 102 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 103 | 'electric-ohm' => { | ||||||||||||||||||||||||||||
| 104 | 'one' => q({0} ohmio), | ||||||||||||||||||||||||||||
| 105 | 'other' => q({0} ohmios), | ||||||||||||||||||||||||||||
| 106 | }, | ||||||||||||||||||||||||||||
| 107 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 108 | 'ohm' => { | ||||||||||||||||||||||||||||
| 109 | 'one' => q({0} ohmio), | ||||||||||||||||||||||||||||
| 110 | 'other' => q({0} ohmios), | ||||||||||||||||||||||||||||
| 111 | }, | ||||||||||||||||||||||||||||
| 112 | }, | ||||||||||||||||||||||||||||
| 113 | 'narrow' => { | ||||||||||||||||||||||||||||
| 114 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 115 | 'duration-day' => { | ||||||||||||||||||||||||||||
| 116 | 'one' => q({0}d.), | ||||||||||||||||||||||||||||
| 117 | 'other' => q({0}d.), | ||||||||||||||||||||||||||||
| 118 | }, | ||||||||||||||||||||||||||||
| 119 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 120 | 'day' => { | ||||||||||||||||||||||||||||
| 121 | 'one' => q({0}d.), | ||||||||||||||||||||||||||||
| 122 | 'other' => q({0}d.), | ||||||||||||||||||||||||||||
| 123 | }, | ||||||||||||||||||||||||||||
| 124 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 125 | 'duration-month' => { | ||||||||||||||||||||||||||||
| 126 | 'one' => q({0}m.), | ||||||||||||||||||||||||||||
| 127 | 'other' => q({0}m.), | ||||||||||||||||||||||||||||
| 128 | }, | ||||||||||||||||||||||||||||
| 129 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 130 | 'month' => { | ||||||||||||||||||||||||||||
| 131 | 'one' => q({0}m.), | ||||||||||||||||||||||||||||
| 132 | 'other' => q({0}m.), | ||||||||||||||||||||||||||||
| 133 | }, | ||||||||||||||||||||||||||||
| 134 | }, | ||||||||||||||||||||||||||||
| 135 | 'short' => { | ||||||||||||||||||||||||||||
| 136 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 137 | 'duration-day' => { | ||||||||||||||||||||||||||||
| 138 | 'name' => q(d.), | ||||||||||||||||||||||||||||
| 139 | }, | ||||||||||||||||||||||||||||
| 140 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 141 | 'day' => { | ||||||||||||||||||||||||||||
| 142 | 'name' => q(d.), | ||||||||||||||||||||||||||||
| 143 | }, | ||||||||||||||||||||||||||||
| 144 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 145 | 'duration-second' => { | ||||||||||||||||||||||||||||
| 146 | 'name' => q(seg.), | ||||||||||||||||||||||||||||
| 147 | 'one' => q({0} seg.), | ||||||||||||||||||||||||||||
| 148 | 'other' => q({0} seg.), | ||||||||||||||||||||||||||||
| 149 | }, | ||||||||||||||||||||||||||||
| 150 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 151 | 'second' => { | ||||||||||||||||||||||||||||
| 152 | 'name' => q(seg.), | ||||||||||||||||||||||||||||
| 153 | 'one' => q({0} seg.), | ||||||||||||||||||||||||||||
| 154 | 'other' => q({0} seg.), | ||||||||||||||||||||||||||||
| 155 | }, | ||||||||||||||||||||||||||||
| 156 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 157 | 'electric-volt' => { | ||||||||||||||||||||||||||||
| 158 | 'name' => q(voltios), | ||||||||||||||||||||||||||||
| 159 | }, | ||||||||||||||||||||||||||||
| 160 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 161 | 'volt' => { | ||||||||||||||||||||||||||||
| 162 | 'name' => q(voltios), | ||||||||||||||||||||||||||||
| 163 | }, | ||||||||||||||||||||||||||||
| 164 | # Long Unit Identifier | ||||||||||||||||||||||||||||
| 165 | 'power-watt' => { | ||||||||||||||||||||||||||||
| 166 | 'name' => q(vatios), | ||||||||||||||||||||||||||||
| 167 | }, | ||||||||||||||||||||||||||||
| 168 | # Core Unit Identifier | ||||||||||||||||||||||||||||
| 169 | 'watt' => { | ||||||||||||||||||||||||||||
| 170 | 'name' => q(vatios), | ||||||||||||||||||||||||||||
| 171 | }, | ||||||||||||||||||||||||||||
| 172 | }, | ||||||||||||||||||||||||||||
| 173 | } } | ||||||||||||||||||||||||||||
| 174 | 1 | ); | |||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||
| 176 | has 'number_currency_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 | 'latn' => { | |||||||||||||||||||||||||||
| 182 | 'pattern' => { | ||||||||||||||||||||||||||||
| 183 | 'default' => { | ||||||||||||||||||||||||||||
| 184 | 'accounting' => { | ||||||||||||||||||||||||||||
| 185 | 'negative' => '(¤#,##0.00)', | ||||||||||||||||||||||||||||
| 186 | 'positive' => '¤#,##0.00', | ||||||||||||||||||||||||||||
| 187 | }, | ||||||||||||||||||||||||||||
| 188 | }, | ||||||||||||||||||||||||||||
| 189 | }, | ||||||||||||||||||||||||||||
| 190 | }, | ||||||||||||||||||||||||||||
| 191 | } }, | ||||||||||||||||||||||||||||
| 192 | 1 | ); | |||||||||||||||||||||||||||
| 193 | |||||||||||||||||||||||||||||
| 194 | has 'currencies' => ( | ||||||||||||||||||||||||||||
| 195 | is => 'ro', | ||||||||||||||||||||||||||||
| 196 | isa => HashRef, | ||||||||||||||||||||||||||||
| 197 | init_arg => undef, | ||||||||||||||||||||||||||||
| 198 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 199 | 0 | 'DOP' => { | |||||||||||||||||||||||||||
| 200 | symbol => 'RD$', | ||||||||||||||||||||||||||||
| 201 | }, | ||||||||||||||||||||||||||||
| 202 | 'USD' => { | ||||||||||||||||||||||||||||
| 203 | symbol => 'US$', | ||||||||||||||||||||||||||||
| 204 | }, | ||||||||||||||||||||||||||||
| 205 | } }, | ||||||||||||||||||||||||||||
| 206 | 1 | ); | |||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||
| 209 | has 'calendar_quarters' => ( | ||||||||||||||||||||||||||||
| 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 | 'gregorian' => { | |||||||||||||||||||||||||||
| 215 | 'format' => { | ||||||||||||||||||||||||||||
| 216 | abbreviated => {0 => 'Q1', | ||||||||||||||||||||||||||||
| 217 | 1 => 'Q2', | ||||||||||||||||||||||||||||
| 218 | 2 => 'Q3', | ||||||||||||||||||||||||||||
| 219 | 3 => 'Q4' | ||||||||||||||||||||||||||||
| 220 | }, | ||||||||||||||||||||||||||||
| 221 | }, | ||||||||||||||||||||||||||||
| 222 | }, | ||||||||||||||||||||||||||||
| 223 | } }, | ||||||||||||||||||||||||||||
| 224 | 1 | ); | |||||||||||||||||||||||||||
| 225 | |||||||||||||||||||||||||||||
| 226 | has 'day_period_data' => ( | ||||||||||||||||||||||||||||
| 227 | is => 'ro', | ||||||||||||||||||||||||||||
| 228 | isa => CodeRef, | ||||||||||||||||||||||||||||
| 229 | init_arg => undef, | ||||||||||||||||||||||||||||
| 230 | 0 | ▶ | default => sub { sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Subroutine
__ANON__: not called CC=43 SCAR=75.5
| |||||||||||||||||||||||||||||
| 231 | # Time in hhmm format | ||||||||||||||||||||||||||||
| 232 | 0 | my ($self, $type, $time, $day_period_type) = @_; | |||||||||||||||||||||||||||
| 233 | 0 | ▶ | $day_period_type //= 'default'; | ||||||||||||||||||||||||||
|
Condition0%0/2
$day_period_type //= "default"
MC/DC0%0/1
$day_period_type //= "default"
$day_period_type
Truth table0%0/2
A
A= $day_period_type
| |||||||||||||||||||||||||||||
| 234 | SWITCH: | ||||||||||||||||||||||||||||
| 235 | 0 | for ($type) { | |||||||||||||||||||||||||||
| 236 | 0 | ▶ | if ($_ eq 'generic') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 237 | 0 | ▶ | if($day_period_type eq 'default') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 238 | 0 | ▶ | return 'noon' if $time == 1200; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 239 | 0 | ▶ | return 'evening1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 2000
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
| |||||||||||||||||||||||||||||
| 240 | && $time < 2000; | ||||||||||||||||||||||||||||
| 241 | 0 | ▶ | return 'morning1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 600
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
| |||||||||||||||||||||||||||||
| 242 | && $time < 600; | ||||||||||||||||||||||||||||
| 243 | 0 | ▶ | return 'morning2' if $time >= 600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 600 and $time < 1200
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
| |||||||||||||||||||||||||||||
| 244 | && $time < 1200; | ||||||||||||||||||||||||||||
| 245 | 0 | ▶ | return 'night1' if $time >= 2000 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 2000 and $time < 2400
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
| |||||||||||||||||||||||||||||
| 246 | && $time < 2400; | ||||||||||||||||||||||||||||
| 247 | } | ||||||||||||||||||||||||||||
| 248 | 0 | ▶ | if($day_period_type eq 'selection') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 249 | 0 | ▶ | return 'evening1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 2000
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
| |||||||||||||||||||||||||||||
| 250 | && $time < 2000; | ||||||||||||||||||||||||||||
| 251 | 0 | ▶ | return 'morning1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 600
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
| |||||||||||||||||||||||||||||
| 252 | && $time < 600; | ||||||||||||||||||||||||||||
| 253 | 0 | ▶ | return 'morning2' if $time >= 600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 600 and $time < 1200
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
| |||||||||||||||||||||||||||||
| 254 | && $time < 1200; | ||||||||||||||||||||||||||||
| 255 | 0 | ▶ | return 'night1' if $time >= 2000 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 2000 and $time < 2400
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
| |||||||||||||||||||||||||||||
| 256 | && $time < 2400; | ||||||||||||||||||||||||||||
| 257 | } | ||||||||||||||||||||||||||||
| 258 | 0 | last SWITCH; | |||||||||||||||||||||||||||
| 259 | } | ||||||||||||||||||||||||||||
| 260 | 0 | ▶ | if ($_ eq 'gregorian') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 261 | 0 | ▶ | if($day_period_type eq 'default') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 262 | 0 | ▶ | return 'noon' if $time == 1200; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 263 | 0 | ▶ | return 'evening1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 2000
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
| |||||||||||||||||||||||||||||
| 264 | && $time < 2000; | ||||||||||||||||||||||||||||
| 265 | 0 | ▶ | return 'morning1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 600
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
| |||||||||||||||||||||||||||||
| 266 | && $time < 600; | ||||||||||||||||||||||||||||
| 267 | 0 | ▶ | return 'morning2' if $time >= 600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 600 and $time < 1200
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
| |||||||||||||||||||||||||||||
| 268 | && $time < 1200; | ||||||||||||||||||||||||||||
| 269 | 0 | ▶ | return 'night1' if $time >= 2000 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 2000 and $time < 2400
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
| |||||||||||||||||||||||||||||
| 270 | && $time < 2400; | ||||||||||||||||||||||||||||
| 271 | } | ||||||||||||||||||||||||||||
| 272 | 0 | ▶ | if($day_period_type eq 'selection') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 273 | 0 | ▶ | return 'evening1' if $time >= 1200 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 1200 and $time < 2000
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
| |||||||||||||||||||||||||||||
| 274 | && $time < 2000; | ||||||||||||||||||||||||||||
| 275 | 0 | ▶ | return 'morning1' if $time >= 0 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 0 and $time < 600
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
| |||||||||||||||||||||||||||||
| 276 | && $time < 600; | ||||||||||||||||||||||||||||
| 277 | 0 | ▶ | return 'morning2' if $time >= 600 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 600 and $time < 1200
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
| |||||||||||||||||||||||||||||
| 278 | && $time < 1200; | ||||||||||||||||||||||||||||
| 279 | 0 | ▶ | return 'night1' if $time >= 2000 | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$time >= 2000 and $time < 2400
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
| |||||||||||||||||||||||||||||
| 280 | && $time < 2400; | ||||||||||||||||||||||||||||
| 281 | } | ||||||||||||||||||||||||||||
| 282 | 0 | last SWITCH; | |||||||||||||||||||||||||||
| 283 | } | ||||||||||||||||||||||||||||
| 284 | } | ||||||||||||||||||||||||||||
| 285 | 0 | } }, | |||||||||||||||||||||||||||
| 286 | 1 | ); | |||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||
| 288 | 0 | ▶ | around day_period_data => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 289 | 0 | my ($orig, $self) = @_; | |||||||||||||||||||||||||||
| 290 | 0 | return $self->$orig; | |||||||||||||||||||||||||||
| 291 | 1 | }; | |||||||||||||||||||||||||||
| 292 | |||||||||||||||||||||||||||||
| 293 | has 'day_periods' => ( | ||||||||||||||||||||||||||||
| 294 | is => 'ro', | ||||||||||||||||||||||||||||
| 295 | isa => HashRef, | ||||||||||||||||||||||||||||
| 296 | init_arg => undef, | ||||||||||||||||||||||||||||
| 297 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 298 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 299 | 'format' => { | ||||||||||||||||||||||||||||
| 300 | 'abbreviated' => { | ||||||||||||||||||||||||||||
| 301 | 'am' => q{a. m.}, | ||||||||||||||||||||||||||||
| 302 | 'pm' => q{p. m.}, | ||||||||||||||||||||||||||||
| 303 | }, | ||||||||||||||||||||||||||||
| 304 | 'narrow' => { | ||||||||||||||||||||||||||||
| 305 | 'evening1' => q{tarde}, | ||||||||||||||||||||||||||||
| 306 | 'morning1' => q{día}, | ||||||||||||||||||||||||||||
| 307 | 'morning2' => q{mañana}, | ||||||||||||||||||||||||||||
| 308 | 'night1' => q{noche}, | ||||||||||||||||||||||||||||
| 309 | 'noon' => q{mediodía}, | ||||||||||||||||||||||||||||
| 310 | }, | ||||||||||||||||||||||||||||
| 311 | 'wide' => { | ||||||||||||||||||||||||||||
| 312 | 'am' => q{a. m.}, | ||||||||||||||||||||||||||||
| 313 | 'pm' => q{p. m.}, | ||||||||||||||||||||||||||||
| 314 | }, | ||||||||||||||||||||||||||||
| 315 | }, | ||||||||||||||||||||||||||||
| 316 | 'stand-alone' => { | ||||||||||||||||||||||||||||
| 317 | 'abbreviated' => { | ||||||||||||||||||||||||||||
| 318 | 'am' => q{a. m.}, | ||||||||||||||||||||||||||||
| 319 | 'pm' => q{p. m.}, | ||||||||||||||||||||||||||||
| 320 | }, | ||||||||||||||||||||||||||||
| 321 | 'narrow' => { | ||||||||||||||||||||||||||||
| 322 | 'am' => q{a. m.}, | ||||||||||||||||||||||||||||
| 323 | 'noon' => q{m.}, | ||||||||||||||||||||||||||||
| 324 | 'pm' => q{p. m.}, | ||||||||||||||||||||||||||||
| 325 | }, | ||||||||||||||||||||||||||||
| 326 | 'wide' => { | ||||||||||||||||||||||||||||
| 327 | 'am' => q{a. m.}, | ||||||||||||||||||||||||||||
| 328 | 'pm' => q{p. m.}, | ||||||||||||||||||||||||||||
| 329 | }, | ||||||||||||||||||||||||||||
| 330 | }, | ||||||||||||||||||||||||||||
| 331 | }, | ||||||||||||||||||||||||||||
| 332 | } }, | ||||||||||||||||||||||||||||
| 333 | 1 | ); | |||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||
| 335 | has 'eras' => ( | ||||||||||||||||||||||||||||
| 336 | is => 'ro', | ||||||||||||||||||||||||||||
| 337 | isa => HashRef, | ||||||||||||||||||||||||||||
| 338 | init_arg => undef, | ||||||||||||||||||||||||||||
| 339 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 340 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 341 | }, | ||||||||||||||||||||||||||||
| 342 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 343 | }, | ||||||||||||||||||||||||||||
| 344 | } }, | ||||||||||||||||||||||||||||
| 345 | 1 | ); | |||||||||||||||||||||||||||
| 346 | |||||||||||||||||||||||||||||
| 347 | has 'date_formats' => ( | ||||||||||||||||||||||||||||
| 348 | is => 'ro', | ||||||||||||||||||||||||||||
| 349 | isa => HashRef, | ||||||||||||||||||||||||||||
| 350 | init_arg => undef, | ||||||||||||||||||||||||||||
| 351 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 352 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 353 | 'medium' => q{dd/MM/y G}, | ||||||||||||||||||||||||||||
| 354 | }, | ||||||||||||||||||||||||||||
| 355 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 356 | }, | ||||||||||||||||||||||||||||
| 357 | } }, | ||||||||||||||||||||||||||||
| 358 | 1 | ); | |||||||||||||||||||||||||||
| 359 | |||||||||||||||||||||||||||||
| 360 | has 'time_formats' => ( | ||||||||||||||||||||||||||||
| 361 | is => 'ro', | ||||||||||||||||||||||||||||
| 362 | isa => HashRef, | ||||||||||||||||||||||||||||
| 363 | init_arg => undef, | ||||||||||||||||||||||||||||
| 364 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 365 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 366 | }, | ||||||||||||||||||||||||||||
| 367 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 368 | }, | ||||||||||||||||||||||||||||
| 369 | } }, | ||||||||||||||||||||||||||||
| 370 | 1 | ); | |||||||||||||||||||||||||||
| 371 | |||||||||||||||||||||||||||||
| 372 | has 'datetime_formats' => ( | ||||||||||||||||||||||||||||
| 373 | is => 'ro', | ||||||||||||||||||||||||||||
| 374 | isa => HashRef, | ||||||||||||||||||||||||||||
| 375 | init_arg => undef, | ||||||||||||||||||||||||||||
| 376 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 377 | 0 | 'generic' => { | |||||||||||||||||||||||||||
| 378 | }, | ||||||||||||||||||||||||||||
| 379 | 'gregorian' => { | ||||||||||||||||||||||||||||
| 380 | }, | ||||||||||||||||||||||||||||
| 381 | } }, | ||||||||||||||||||||||||||||
| 382 | 1 | ); | |||||||||||||||||||||||||||
| 383 | |||||||||||||||||||||||||||||
| 384 | has 'datetime_formats_available_formats' => ( | ||||||||||||||||||||||||||||
| 385 | is => 'ro', | ||||||||||||||||||||||||||||
| 386 | isa => HashRef, | ||||||||||||||||||||||||||||
| 387 | init_arg => undef, | ||||||||||||||||||||||||||||
| 388 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 389 | 0 | 'gregorian' => { | |||||||||||||||||||||||||||
| 390 | yMMMd => q{d MMM 'de' y}, | ||||||||||||||||||||||||||||
| 391 | }, | ||||||||||||||||||||||||||||
| 392 | } }, | ||||||||||||||||||||||||||||
| 393 | 1 | ); | |||||||||||||||||||||||||||
| 394 | |||||||||||||||||||||||||||||
| 395 | has 'datetime_formats_append_item' => ( | ||||||||||||||||||||||||||||
| 396 | is => 'ro', | ||||||||||||||||||||||||||||
| 397 | isa => HashRef, | ||||||||||||||||||||||||||||
| 398 | init_arg => undef, | ||||||||||||||||||||||||||||
| 399 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 400 | 0 | } }, | |||||||||||||||||||||||||||
| 401 | 1 | ); | |||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||
| 403 | has 'datetime_formats_interval' => ( | ||||||||||||||||||||||||||||
| 404 | is => 'ro', | ||||||||||||||||||||||||||||
| 405 | isa => HashRef, | ||||||||||||||||||||||||||||
| 406 | init_arg => undef, | ||||||||||||||||||||||||||||
| 407 | 0 | ▶ | default => sub { { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 408 | 0 | } }, | |||||||||||||||||||||||||||
| 409 | 1 | ); | |||||||||||||||||||||||||||
| 410 | |||||||||||||||||||||||||||||
| 411 | 1 | ▶ | no Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 412 | |||||||||||||||||||||||||||||
| 413 | 1 | 1; | |||||||||||||||||||||||||||
| 414 | |||||||||||||||||||||||||||||
| 415 | # vim: tabstop=4 | ||||||||||||||||||||||||||||