Af/Latn/Na.pm

filter: Statementstmt 51.2% 42 / 82 Branchbran 0.0% 0 / 48 Conditioncond 0.0% 0 / 50 MC/DCmcdc 0.0% 0 / 33 Subroutinesub 47.6% 10 / 21 Podpod n/a totaltotal 22.2% 52 / 234 CC 43 SCAR 71.6
CC
43
Cov
23%
__ANON__
1892.0
__ANON__
2.0
__ANON__
2.0
CRAP 1291.8
↑ Summary Af.pm »
1 =encoding utf8
2
3 =head1 NAME
4
5 Locale::CLDR::Locales::Af::Latn::Na - Package for language Afrikaans
6
7 =cut
8
9 package Locale::CLDR::Locales::Af::Latn::Na;
10 # This file auto generated from Data\common\main\af_NA.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::Af::Latn');
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 'NAD' => {
33 symbol => '$',
34 },
35 } },
36 1 );
37
38
39 has 'day_period_data' => (
40 is => 'ro',
41 isa => CodeRef,
42 init_arg => undef,
43 0 ▶ default => sub { sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
Subroutine __ANON__: not called CC=43 SCAR=75.5
44 # Time in hhmm format
45 0 my ($self, $type, $time, $day_period_type) = @_;
46 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
47 SWITCH:
48 0 for ($type) {
49 0 ▶ if ($_ eq 'generic') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "generic") 0 0 0
50 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
51 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
52 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
53 && $time < 1800;
54 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
55 && $time < 2400;
56 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
57 && $time < 1200;
58 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
59 && $time < 500;
60 }
61 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
62 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
63 && $time < 1800;
64 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
65 && $time < 2400;
66 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
67 && $time < 1200;
68 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
69 && $time < 500;
70 }
71 0 last SWITCH;
72 }
73 0 ▶ if ($_ eq 'gregorian') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ eq "gregorian") 0 0 0
74 0 ▶ if($day_period_type eq 'default') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "default") 0 0 0
75 0 ▶ return 'midnight' if $time == 0;
Branch: 1 branch
BranchTrueFalseTotal
if $time == 0 0 0 0
76 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
77 && $time < 1800;
78 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
79 && $time < 2400;
80 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
81 && $time < 1200;
82 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
83 && $time < 500;
84 }
85 0 ▶ if($day_period_type eq 'selection') {
Branch: 1 branch
BranchTrueFalseTotal
if ($day_period_type eq "selection") 0 0 0
86 0 ▶ return 'afternoon1' if $time >= 1200
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1200 and $time < 1800 0 0 0
Condition0%0/3
$time >= 1200 and $time < 1800
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1200 and $time < 1800
$time >= 1200 $time < 1800
Truth table0%0/3
A and B
A= $time >= 1200B= $time < 1800
ABresult
0X0
100
111
87 && $time < 1800;
88 0 ▶ return 'evening1' if $time >= 1800
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 1800 and $time < 2400 0 0 0
Condition0%0/3
$time >= 1800 and $time < 2400
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 1800 and $time < 2400
$time >= 1800 $time < 2400
Truth table0%0/3
A and B
A= $time >= 1800B= $time < 2400
ABresult
0X0
100
111
89 && $time < 2400;
90 0 ▶ return 'morning1' if $time >= 500
Branch: 1 branch
BranchTrueFalseTotal
if $time >= 500 and $time < 1200 0 0 0
Condition0%0/3
$time >= 500 and $time < 1200
!ll&&!rl&&r
000
MC/DC0%0/2
$time >= 500 and $time < 1200
$time >= 500 $time < 1200
Truth table0%0/3
A and B
A= $time >= 500B= $time < 1200
ABresult
0X0
100
111
91 && $time < 1200;
92 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
93 && $time < 500;
94 }
95 0 last SWITCH;
96 }
97 }
98 0 } },
99 1 );
100
101 0 ▶around day_period_data => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
102 0 my ($orig, $self) = @_;
103 0 return $self->$orig;
104 1 };
105
106 has 'eras' => (
107 is => 'ro',
108 isa => HashRef,
109 init_arg => undef,
110 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
111 0 'generic' => {
112 },
113 '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 'generic' => {
124 'full' => q{EEEE d MMMM y G},
125 'long' => q{d MMMM y G},
126 'medium' => q{d MMM y G},
127 },
128 'gregorian' => {
129 'full' => q{EEEE d MMMM y},
130 'long' => q{d MMMM y},
131 'medium' => q{d MMM y},
132 },
133 } },
134 1 );
135
136 has 'time_formats' => (
137 is => 'ro',
138 isa => HashRef,
139 init_arg => undef,
140 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
141 0 'generic' => {
142 },
143 'gregorian' => {
144 'full' => q{h:mm:ss a zzzz},
145 'long' => q{h:mm:ss a z},
146 'medium' => q{h:mm:ss a},
147 'short' => q{h:mm a},
148 },
149 } },
150 1 );
151
152 has 'datetime_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 'generic' => {
158 },
159 'gregorian' => {
160 },
161 } },
162 1 );
163
164 has 'datetime_formats_available_formats' => (
165 is => 'ro',
166 isa => HashRef,
167 init_arg => undef,
168 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
169 0 } },
170 1 );
171
172 has 'datetime_formats_append_item' => (
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 } },
178 1 );
179
180 has 'datetime_formats_interval' => (
181 is => 'ro',
182 isa => HashRef,
183 init_arg => undef,
184 0 ▶ default => sub { {
Subroutine __ANON__: not called CC=1 SCAR=6.9
185 0 } },
186 1 );
187
188 1 ▶no Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
189
190 1 1;
191
192 # vim: tabstop=4
↑ Summary Af.pm »