Zh/Hans/My.pm

filter: Statementstmt 57.3% 43 / 75 Branchbran 0.0% 0 / 32 Conditioncond 0.0% 0 / 38 MC/DCmcdc 0.0% 0 / 25 Subroutinesub 45.4% 10 / 22 Podpod n/a totaltotal 27.6% 53 / 192 CC 31 SCAR 63.8
CC
31
Cov
30%
__ANON__
992.0
__ANON__
2.0
__ANON__
2.0
CRAP 592.0
« Zh/Hant/My.pm ↑ Summary Zh/Hant/Mo.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Zh::Hans::My - Package for language Chinese
6
7 =cut
8
9 package Locale::CLDR::Locales::Zh::Hans::My;
10 # This file auto generated from Data\common\main\zh_Hans_MY.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::Zh::Hans');
27 has 'currencies' => (
28 is => 'ro',
29 isa => HashRef,
30 init_arg => undef,
31 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 'MYR' => {
33 display_name => {
34 'currency' => q(马来西亚令吉),
35 'other' => q(马来西亚令吉),
36 },
37 },
38 } },
39 1 );
40
41
42 has 'day_period_data' => (
43 is => 'ro',
44 isa => CodeRef,
45 init_arg => undef,
46 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=31 SCAR=69.0
47 # Time in hhmm format
48 0 my ($self, $type, $time, $day_period_type) = @_;
49 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
50 SWITCH:
51 0 for ($type) {
52 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
53 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
54 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
55 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
56 && $time < 1300;
57 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1900
$time >= 1300 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1900
ABresult
0X0
100
111
58 && $time < 1900;
59 0 ▶ return 'evening1' if $time >= 1900
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2400
$time >= 1900 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2400
ABresult
0X0
100
111
60 && $time < 2400;
61 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 800 0 0 0
Condition0%0/3
$time >= 500 and $time < 800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 800
$time >= 500 $time < 800
Truth table0%0/3
A and B
A= $time >= 500B= $time < 800
ABresult
0X0
100
111
62 && $time < 800;
63 0 ▶ return 'morning2' if $time >= 800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 800 and $time < 1200 0 0 0
Condition0%0/3
$time >= 800 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 800 and $time < 1200
$time >= 800 $time < 1200
Truth table0%0/3
A and B
A= $time >= 800B= $time < 1200
ABresult
0X0
100
111
64 && $time < 1200;
65 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 500 0 0 0
Condition0%0/3
$time >= 0 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0 $time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
ABresult
0X0
100
111
66 && $time < 500;
67 }
68 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
69 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
70 && $time < 1300;
71 0 ▶ return 'afternoon2' if $time >= 1300
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1300 and $time < 1900 0 0 0
Condition0%0/3
$time >= 1300 and $time < 1900
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1300 and $time < 1900
$time >= 1300 $time < 1900
Truth table0%0/3
A and B
A= $time >= 1300B= $time < 1900
ABresult
0X0
100
111
72 && $time < 1900;
73 0 ▶ return 'evening1' if $time >= 1900
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1900 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1900 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1900 and $time < 2400
$time >= 1900 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1900B= $time < 2400
ABresult
0X0
100
111
74 && $time < 2400;
75 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 800 0 0 0
Condition0%0/3
$time >= 500 and $time < 800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 800
$time >= 500 $time < 800
Truth table0%0/3
A and B
A= $time >= 500B= $time < 800
ABresult
0X0
100
111
76 && $time < 800;
77 0 ▶ return 'morning2' if $time >= 800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 800 and $time < 1200 0 0 0
Condition0%0/3
$time >= 800 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 800 and $time < 1200
$time >= 800 $time < 1200
Truth table0%0/3
A and B
A= $time >= 800B= $time < 1200
ABresult
0X0
100
111
78 && $time < 1200;
79 0 ▶ return 'night1' if $time >= 0
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 0 and $time < 500 0 0 0
Condition0%0/3
$time >= 0 and $time < 500
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 0 and $time < 500
$time >= 0 $time < 500
Truth table0%0/3
A and B
A= $time >= 0B= $time < 500
ABresult
0X0
100
111
80 && $time < 500;
81 }
82 0 last SWITCH;
83 }
84 }
85 0 } },
86 1 );
87
88 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
89 0 my ($orig, $self) = @_;
90 0 return $self->$orig;
91 1 };
92
93 has 'day_periods' => (
94 is => 'ro',
95 isa => HashRef,
96 init_arg => undef,
97 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
98 0 'gregorian' => {
99 'format' => {
100 'wide' => {
101 'morning1' => q{早上},
102 },
103 },
104 },
105 } },
106 1 );
107
108 has 'eras' => (
109 is => 'ro',
110 isa => HashRef,
111 init_arg => undef,
112 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
113 0 'gregorian' => {
114 },
115 } },
116 1 );
117
118 has 'date_formats' => (
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 },
125 } },
126 1 );
127
128 has 'time_formats' => (
129 is => 'ro',
130 isa => HashRef,
131 init_arg => undef,
132 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
133 0 'gregorian' => {
134 'full' => q{zzzz ah:mm:ss},
135 'long' => q{z ah:mm:ss},
136 'medium' => q{ah:mm:ss},
137 'short' => q{ah:mm},
138 },
139 } },
140 1 );
141
142 has 'datetime_formats' => (
143 is => 'ro',
144 isa => HashRef,
145 init_arg => undef,
146 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
147 0 'gregorian' => {
148 },
149 } },
150 1 );
151
152 has 'datetime_formats_available_formats' => (
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 } },
158 1 );
159
160 has 'datetime_formats_append_item' => (
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 } },
166 1 );
167
168 has 'datetime_formats_interval' => (
169 is => 'ro',
170 isa => HashRef,
171 init_arg => undef,
172 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
173 0 } },
174 1 );
175
176 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
177
178 1 1;
179
180 # vim: tabstop=4
« Zh/Hant/My.pm ↑ Summary Zh/Hant/Mo.pm »